forked from aniani/vim
updated for version 7.4.097
Problem: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat) Solution: Update the valid cursor position. (Christian Brabandt)
This commit is contained in:
@@ -3844,8 +3844,12 @@ do_put(regname, dir, count, flags)
|
|||||||
ml_replace(lnum, newp, FALSE);
|
ml_replace(lnum, newp, FALSE);
|
||||||
/* Place cursor on last putted char. */
|
/* Place cursor on last putted char. */
|
||||||
if (lnum == curwin->w_cursor.lnum)
|
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);
|
curwin->w_cursor.col += (colnr_T)(totlen - 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#ifdef FEAT_VISUAL
|
#ifdef FEAT_VISUAL
|
||||||
if (VIsual_active)
|
if (VIsual_active)
|
||||||
lnum++;
|
lnum++;
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
97,
|
||||||
/**/
|
/**/
|
||||||
96,
|
96,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user