]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.097 v7.4.097
authorBram Moolenaar <Bram@vim.org>
Thu, 21 Nov 2013 12:24:41 +0000 (13:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 21 Nov 2013 12:24:41 +0000 (13:24 +0100)
Problem:    Unexpected behavior change related to 'virtualedit'. (Ingo Karkat)
Solution:   Update the valid cursor position. (Christian Brabandt)

src/ops.c
src/version.c

index bf651918999856f86f0e676d5ee5615dc1d89c7b..e1048c255470392f085cb628f0ab24cd03c69b86 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -3844,7 +3844,11 @@ do_put(regname, dir, count, flags)
                    ml_replace(lnum, newp, FALSE);
                    /* Place cursor on last putted char. */
                    if (lnum == curwin->w_cursor.lnum)
+                   {
+                       /* make sure curwin->w_virtcol is updated */
+                       changed_cline_bef_curs();
                        curwin->w_cursor.col += (colnr_T)(totlen - 1);
+                   }
                }
 #ifdef FEAT_VISUAL
                if (VIsual_active)
index 89e6e11339c945322eb9203a97519431a9c8eade..739b63e6383cd839f1a3360b4087ab28872b0c84 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    97,
 /**/
     96,
 /**/