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: With 'cursorbind' set moving up/down does not always keep the same
13 Solution: Set curswant appropriately. (Gary Johnson)
17 *** ../vim-7.3.481/src/move.c 2012-03-16 19:24:21.000000000 +0100
18 --- src/move.c 2012-03-28 14:16:02.000000000 +0200
22 # ifdef FEAT_VIRTUALEDIT
23 colnr_T coladd = curwin->w_cursor.coladd;
25 + colnr_T curswant = curwin->w_curswant;
26 + int set_curswant = curwin->w_set_curswant;
27 win_T *old_curwin = curwin;
28 buf_T *old_curbuf = curbuf;
29 int restart_edit_save;
33 # ifdef FEAT_VIRTUALEDIT
34 curwin->w_cursor.coladd = coladd;
36 + curwin->w_curswant = curswant;
37 + curwin->w_set_curswant = set_curswant;
39 /* Make sure the cursor is in a valid position. Temporarily set
40 * "restart_edit" to allow the cursor to be beyond the EOL. */
41 *** ../vim-7.3.481/src/version.c 2012-03-28 12:59:53.000000000 +0200
42 --- src/version.c 2012-03-28 14:15:56.000000000 +0200
46 { /* Add new patch number below this line */
52 Women are probably the main cause of free software starvation.
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ an exciting new programming language -- http://www.Zimbu.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///