4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When 'virtualedit' is effective and a line starts with a
12 multi-byte character, moving the cursor right doesn't work.
13 Solution: Obtain the right character to compute the column offset. (Taro
18 *** ../vim-6.2.009/src/charset.c Sat May 24 17:11:15 2003
19 --- src/charset.c Tue Jun 3 22:24:21 2003
22 ptr = ml_get_buf(wp->w_buffer, pos->lnum, FALSE);
23 if (pos->col < STRLEN(ptr))
25 ! int c = (*mb_ptr2char)(ptr);
27 if (c != TAB && vim_isprintc(c))
30 ptr = ml_get_buf(wp->w_buffer, pos->lnum, FALSE);
31 if (pos->col < STRLEN(ptr))
33 ! int c = (*mb_ptr2char)(ptr + pos->col);
35 if (c != TAB && vim_isprintc(c))
37 *** ../vim-6.2.009/src/version.c Tue Jun 3 21:43:31 2003
38 --- src/version.c Tue Jun 3 22:27:22 2003
42 { /* Add new patch number below this line */
48 From "know your smileys":
49 :----} You lie like Pinocchio
51 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
52 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
53 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
54 \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///