]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.473 v7.3.473
authorBram Moolenaar <Bram@vim.org>
Fri, 16 Mar 2012 18:24:26 +0000 (19:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 16 Mar 2012 18:24:26 +0000 (19:24 +0100)
Problem:    'cursorbind' does not work correctly in combination with
            'virtualedit' set to "all".
Solution:   Copy coladd. (Gary Johnson)

src/move.c
src/version.c

index ccbb4addc465ca94ff9afce30012790ab365a92b..fb033933cae8daf7c8e6415243bcff52814465fc 100644 (file)
@@ -2843,7 +2843,10 @@ halfpage(flag, Prenum)
 do_check_cursorbind()
 {
     linenr_T   line = curwin->w_cursor.lnum;
-    colnr_T    col =  curwin->w_cursor.col;
+    colnr_T    col = curwin->w_cursor.col;
+# ifdef FEAT_VIRTUALEDIT
+    colnr_T    coladd = curwin->w_cursor.coladd;
+# endif
     win_T      *old_curwin = curwin;
     buf_T      *old_curbuf = curbuf;
     int                restart_edit_save;
@@ -2875,6 +2878,9 @@ do_check_cursorbind()
 # endif
                curwin->w_cursor.lnum = line;
            curwin->w_cursor.col = col;
+# ifdef FEAT_VIRTUALEDIT
+           curwin->w_cursor.coladd = coladd;
+# endif
 
            /* Make sure the cursor is in a valid position.  Temporarily set
             * "restart_edit" to allow the cursor to be beyond the EOL. */
index f52d9fa4aa58bb34de4bc6b188fed4ca9ee1a54e..3f36bbd8fb7bb898c8589b783459667d234f6f1b 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    473,
 /**/
     472,
 /**/