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
if (flags & PUT_CURSEND)
{
colnr_T len;
curwin->w_cursor = curbuf->b_op_end;
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
curwin->w_cursor.lnum = lnum;