summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-11-21 13:24:41 +0100
committerBram Moolenaar <bram@vim.org>2013-11-21 13:24:41 +0100
commit58183bc6e3ec897d84b79b345859451fcd8cb591 (patch)
tree265a4fcab14177642c269fd5c0fecacb7141450c
parentd73c62a6c468a58813e4f9054cd3f7baed27ffa0 (diff)
downloadvim-58183bc6e3ec897d84b79b345859451fcd8cb591.tar.gz
updated for version 7.4.097v7.4.097v7-4-097
Problem: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat) Solution: Update the valid cursor position. (Christian Brabandt)
-rw-r--r--src/ops.c4
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ops.c b/src/ops.c
index bf651918..e1048c25 100644
--- 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)
diff --git a/src/version.c b/src/version.c
index 89e6e113..739b63e6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 97,
+/**/
96,
/**/
95,