Loading ...
Sorry, an error occurred while loading the content.

629clear_next don't work correctly.

Expand Messages
  • Yasuhiro Matsumoto
    Apr 17, 2002
      hello bram and all.

      clear_next_cell don't work correctly.
      on some case, following text will be erased.
      this happend with text included underline.

      old text:
      [][][]

      new text:(override)
      [][][]
      |
      v
      []
      ~~ <= underline

      following patch will be fix this.
      this patch made by AIDA Shinra.
      thanks.

      diff -Nru ../vim.old/src/screen.c src/screen.c
      --- ../vim.old/src/screen.c Wed Mar 13 04:59:15 2002
      +++ src/screen.c Sat Apr 13 10:02:33 2002
      @@ -5168,11 +5168,14 @@
      * cell. Also when overwriting the left halve of a two-cell
      * char with the right halve of a two-cell char. */
      if (has_mbyte && ptr[mbyte_blen] == NUL
      + && !clear_next_cell
      && ((mbyte_cells == 1 && (*mb_off2cells)(off) > 1)
      || (mbyte_cells == 2
      && (*mb_off2cells)(off) == 1
      && (*mb_off2cells)(off + 1) > 1)))
      clear_next_cell = TRUE;
      + else
      + clear_next_cell = FALSE;
      #endif
      ScreenLines[off] = *ptr;
      ScreenAttrs[off] = attr;
      @@ -5216,10 +5219,7 @@
      col += mbyte_cells;
      ptr += mbyte_blen;
      if (clear_next_cell)
      - {
      ptr = (char_u *)" ";
      - clear_next_cell = FALSE;
      - }
      }
      else
      #endif


      _________________________________________________________________
      Send and receive Hotmail on your mobile device: http://mobile.msn.com
    • Show all 10 messages in this topic