]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-286 v7.1.286
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Apr 2008 10:06:39 +0000 (10:06 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Apr 2008 10:06:39 +0000 (10:06 +0000)
src/normal.c
src/version.c

index eda2ad38ab2ca10bff440b9b046865967816a6d8..d3ce6a8865be3d984f981a479ff592380d312860 100644 (file)
@@ -8345,6 +8345,7 @@ nv_wordcmd(cap)
     int                n;
     int                word_end;
     int                flag = FALSE;
+    pos_T      startpos = curwin->w_cursor;
 
     /*
      * Set inclusive for the "E" and "e" command.
@@ -8405,8 +8406,9 @@ nv_wordcmd(cap)
     else
        n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP);
 
-    /* Don't leave the cursor on the NUL past the end of line. */
-    if (n != FAIL)
+    /* Don't leave the cursor on the NUL past the end of line. Unless we
+     * didn't move it forward. */
+    if (lt(startpos, curwin->w_cursor))
        adjust_cursor(cap->oap);
 
     if (n == FAIL && cap->oap->op_type == OP_NOP)
index ad56d62a815ce439ebfd7d4b91e9b1cbcc0d0150..ef3fc0da68669edc603549cde6071551f6ab8012 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    286,
 /**/
     285,
 /**/