4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Cursor is in the wrong position when 'rightleft' is set,
12 'encoding' is "utf-8" and on an illegal byte. (Dominique Pelle)
13 Solution: Only put the cursor in the first column when actually on a
14 double-wide character. (Yukihiro Nakadaira)
18 *** ../vim-7.1.258/src/screen.c Wed Feb 13 21:48:24 2008
19 --- src/screen.c Wed Feb 20 14:06:26 2008
22 windgoto(W_WINROW(curwin) + curwin->w_wrow,
25 curwin->w_p_rl ? ((int)W_WIDTH(curwin) - curwin->w_wcol - (
27 ! has_mbyte ? (*mb_ptr2cells)(ml_get_cursor()) :
32 windgoto(W_WINROW(curwin) + curwin->w_wrow,
35 + /* With 'rightleft' set and the cursor on a double-wide
36 + * character, position it on the leftmost column. */
37 curwin->w_p_rl ? ((int)W_WIDTH(curwin) - curwin->w_wcol - (
40 ! && (*mb_ptr2cells)(ml_get_cursor()) == 2
41 ! && vim_isprintc(gchar_cursor())) ? 2 :
45 *** ../vim-7.1.258/src/version.c Wed Feb 20 13:41:14 2008
46 --- src/version.c Wed Feb 20 14:10:23 2008
50 { /* Add new patch number below this line */
56 A day without sunshine is like, well, night.
58 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
59 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
60 \\\ download, build and distribute -- http://www.A-A-P.org ///
61 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///