]>
Commit | Line | Data |
---|---|---|
eb0ac1ae AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.152 | |
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.152 | |
11 | Problem: The cursor() function doesn't reset the column offset for | |
12 | 'virtualedit'. | |
13 | Solution: Reset the offset to zero. (Helmut Stiegler) | |
14 | Files: src/eval.c | |
15 | ||
16 | ||
17 | *** ../vim-6.2.151/src/eval.c Sun Oct 12 20:20:38 2003 | |
18 | --- src/eval.c Mon Nov 10 15:17:37 2003 | |
19 | *************** | |
20 | *** 3697,3702 **** | |
21 | --- 3697,3705 ---- | |
22 | col = get_var_number(&argvars[1]); | |
23 | if (col > 0) | |
24 | curwin->w_cursor.col = col - 1; | |
25 | + #ifdef FEAT_VIRTUALEDIT | |
26 | + curwin->w_cursor.coladd = 0; | |
27 | + #endif | |
28 | ||
29 | /* Make sure the cursor is in a valid position. */ | |
30 | check_cursor(); | |
31 | *** ../vim-6.2.151/src/version.c Wed Nov 12 20:44:40 2003 | |
32 | --- src/version.c Wed Nov 12 20:46:46 2003 | |
33 | *************** | |
34 | *** 639,640 **** | |
35 | --- 639,642 ---- | |
36 | { /* Add new patch number below this line */ | |
37 | + /**/ | |
38 | + 152, | |
39 | /**/ | |
40 | ||
41 | -- | |
42 | hundred-and-one symptoms of being an internet addict: | |
43 | 7. You finally do take that vacation, but only after buying a cellular modem | |
44 | and a laptop. | |
45 | ||
46 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
47 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
48 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
49 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |