commit | 12dec75f7170a66ff60aa4e98fd4ae98657f2b07 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 23 20:37:09 2006 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 23 20:37:09 2006 +0000 |
tree | 39b2cd4a9158c1d0c8979e6c79e6445e79bb2a2f | |
parent | bde3526983f9f968c6bff2c49e0648c563d5f988 [diff] [blame] |
updated for version 7.0-042
diff --git a/src/ops.c b/src/ops.c index 7fb7f58..9e7927d 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -3493,8 +3493,15 @@ # 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;