Skip to content

Commit 0f8f699

Browse files
committed
updated for version 7.4.097
Problem: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat) Solution: Update the valid cursor position. (Christian Brabandt)
1 parent 57eef40 commit 0f8f699

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/ops.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,11 @@ do_put(regname, dir, count, flags)
38443844
ml_replace(lnum, newp, FALSE);
38453845
/* Place cursor on last putted char. */
38463846
if (lnum == curwin->w_cursor.lnum)
3847+
{
3848+
/* make sure curwin->w_virtcol is updated */
3849+
changed_cline_bef_curs();
38473850
curwin->w_cursor.col += (colnr_T)(totlen - 1);
3851+
}
38483852
}
38493853
#ifdef FEAT_VISUAL
38503854
if (VIsual_active)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
97,
741743
/**/
742744
96,
743745
/**/

0 commit comments

Comments
 (0)