]>
Commit | Line | Data |
---|---|---|
b4704371 AF |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.010 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.010 | |
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 | |
14 | Muraoka) | |
15 | Files: src/charset.c | |
16 | ||
17 | ||
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 | |
20 | *************** | |
21 | *** 1352,1358 **** | |
22 | ptr = ml_get_buf(wp->w_buffer, pos->lnum, FALSE); | |
23 | if (pos->col < STRLEN(ptr)) | |
24 | { | |
25 | ! int c = (*mb_ptr2char)(ptr); | |
26 | ||
27 | if (c != TAB && vim_isprintc(c)) | |
28 | { | |
29 | --- 1352,1358 ---- | |
30 | ptr = ml_get_buf(wp->w_buffer, pos->lnum, FALSE); | |
31 | if (pos->col < STRLEN(ptr)) | |
32 | { | |
33 | ! int c = (*mb_ptr2char)(ptr + pos->col); | |
34 | ||
35 | if (c != TAB && vim_isprintc(c)) | |
36 | { | |
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 | |
39 | *************** | |
40 | *** 632,633 **** | |
41 | --- 632,635 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 10, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | From "know your smileys": | |
49 | :----} You lie like Pinocchio | |
50 | ||
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 /// |