Mercurial > vim
changeset 916:b8ed23ef6ff1 v7.0.042
updated for version 7.0-042
author | vimboss |
---|---|
date | Sun, 23 Jul 2006 20:37:09 +0000 |
parents | d87865573d80 |
children | 94164a5b0626 |
files | src/ops.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -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;