# HG changeset patch # User Bram Moolenaar # Date 1385036681 -3600 # Node ID 93c8296281dd64e513d52db9f745965926df5cab # Parent 02374b3a9983c5f262397efcd5193564ec0fcbd5 updated for version 7.4.097 Problem: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat) Solution: Update the valid cursor position. (Christian Brabandt) diff --git a/src/ops.c b/src/ops.c --- 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 --- 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,