1
0
forked from aniani/vim

updated for version 7.0-042

This commit is contained in:
Bram Moolenaar
2006-07-23 20:37:09 +00:00
parent bde3526983
commit 12dec75f71
2 changed files with 9 additions and 0 deletions

View File

@@ -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;

View File

@@ -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,
/**/ /**/