4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: GUI: When clearing after a bold, double-wide character half a
12 character may be drawn.
13 Solution: Check for double-wide character and redraw it. (Yukihiro Nakadaira)
17 *** ../vim-7.0.121/src/screen.c Thu Sep 14 21:04:09 2006
18 --- src/screen.c Sat Oct 7 15:13:43 2006
21 * character too. If we didn't skip any blanks above, then we
22 * only redraw if the character wasn't already redrawn anyway.
24 ! if (gui.in_use && (col > startCol || !redraw_this)
30 hl = ScreenAttrs[off_to];
31 if (hl > HL_ALL || (hl & HL_BOLD))
32 ! screen_char(off_to - 1, row, col + coloff - 1);
35 screen_fill(row, row + 1, col + coloff, clear_width + coloff,
37 * character too. If we didn't skip any blanks above, then we
38 * only redraw if the character wasn't already redrawn anyway.
40 ! if (gui.in_use && (col > startCol || !redraw_this))
42 hl = ScreenAttrs[off_to];
43 if (hl > HL_ALL || (hl & HL_BOLD))
48 ! /* for utf-8, ScreenLines[char_offset + 1] == 0 means
49 ! * that its width is 2. */
50 ! prev_cells = ScreenLines[off_to - 1] == 0 ? 2 : 1;
51 ! else if (enc_dbcs != 0)
53 ! /* find previous character by counting from first
54 ! * column and get its width. */
55 ! unsigned off = LineOffset[row];
57 ! while (off < off_to)
59 ! prev_cells = (*mb_off2cells)(off);
64 ! if (enc_dbcs != 0 && prev_cells > 1)
65 ! screen_char_2(off_to - prev_cells, row,
66 ! col + coloff - prev_cells);
69 ! screen_char(off_to - prev_cells, row,
70 ! col + coloff - prev_cells);
74 screen_fill(row, row + 1, col + coloff, clear_width + coloff,
75 *** ../vim-7.0.121/src/version.c Sun Oct 8 13:56:53 2006
76 --- src/version.c Mon Oct 9 22:10:17 2006
80 { /* Add new patch number below this line */
86 How To Keep A Healthy Level Of Insanity:
87 7. Finish all your sentences with "in accordance with the prophecy".
89 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
90 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
91 \\\ download, build and distribute -- http://www.A-A-P.org ///
92 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///