diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-07-23 20:37:09 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-07-23 20:37:09 +0000 |
commit | 12dec75f7170a66ff60aa4e98fd4ae98657f2b07 (patch) | |
tree | 39b2cd4a9158c1d0c8979e6c79e6445e79bb2a2f | |
parent | bde3526983f9f968c6bff2c49e0648c563d5f988 (diff) | |
download | vim-12dec75f7170a66ff60aa4e98fd4ae98657f2b07.zip |
updated for version 7.0-042
-rw-r--r-- | src/ops.c | 7 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -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; diff --git a/src/version.c b/src/version.c index 48e0fd67e..b5698aac1 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 42, +/**/ 41, /**/ 40, |