]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.0-042 v7.0.042
authorBram Moolenaar <Bram@vim.org>
Sun, 23 Jul 2006 20:37:09 +0000 (20:37 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 Jul 2006 20:37:09 +0000 (20:37 +0000)
src/ops.c
src/version.c

index 7fb7f5887d2b35f2c0e5f3b462485d9ac0da4ac8..9e7927d9a25fad6d969b6739a921fe3786121094 100644 (file)
--- 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;
index 48e0fd67e9e1f9dca460dd6ca44ab531c21bc4ac..b5698aac1b0275b904e04ba7904b9d320a205f07 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    42,
 /**/
     41,
 /**/