1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: 'cursorbind' does not work correctly in combination with
12 'virtualedit' set to "all".
13 Solution: Copy coladd. (Gary Johnson)
17 *** ../vim-7.3.472/src/move.c 2012-02-04 23:34:57.000000000 +0100
18 --- src/move.c 2012-03-16 19:20:57.000000000 +0100
23 linenr_T line = curwin->w_cursor.lnum;
24 ! colnr_T col = curwin->w_cursor.col;
25 win_T *old_curwin = curwin;
26 buf_T *old_curbuf = curbuf;
27 int restart_edit_save;
31 linenr_T line = curwin->w_cursor.lnum;
32 ! colnr_T col = curwin->w_cursor.col;
33 ! # ifdef FEAT_VIRTUALEDIT
34 ! colnr_T coladd = curwin->w_cursor.coladd;
36 win_T *old_curwin = curwin;
37 buf_T *old_curbuf = curbuf;
38 int restart_edit_save;
43 curwin->w_cursor.lnum = line;
44 curwin->w_cursor.col = col;
45 + # ifdef FEAT_VIRTUALEDIT
46 + curwin->w_cursor.coladd = coladd;
49 /* Make sure the cursor is in a valid position. Temporarily set
50 * "restart_edit" to allow the cursor to be beyond the EOL. */
51 *** ../vim-7.3.472/src/version.c 2012-03-16 19:07:54.000000000 +0100
52 --- src/version.c 2012-03-16 19:24:06.000000000 +0100
56 { /* Add new patch number below this line */
62 hundred-and-one symptoms of being an internet addict:
63 201. When somebody asks you where you are, you tell them in which chat room.
65 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
66 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\ an exciting new programming language -- http://www.Zimbu.org ///
68 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///