forked from aniani/vim
updated for version 7.0-042
This commit is contained in:
@@ -3493,8 +3493,15 @@ do_put(regname, dir, count, flags)
|
|||||||
# endif
|
# endif
|
||||||
if (flags & PUT_CURSEND)
|
if (flags & PUT_CURSEND)
|
||||||
{
|
{
|
||||||
|
colnr_T len;
|
||||||
|
|
||||||
curwin->w_cursor = curbuf->b_op_end;
|
curwin->w_cursor = curbuf->b_op_end;
|
||||||
curwin->w_cursor.col++;
|
curwin->w_cursor.col++;
|
||||||
|
|
||||||
|
/* in Insert mode we might be after the NUL, correct for that */
|
||||||
|
len = (colnr_T)STRLEN(ml_get_curline());
|
||||||
|
if (curwin->w_cursor.col > len)
|
||||||
|
curwin->w_cursor.col = len;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
curwin->w_cursor.lnum = lnum;
|
curwin->w_cursor.lnum = lnum;
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
42,
|
||||||
/**/
|
/**/
|
||||||
41,
|
41,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user