]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.228 v7.3.228
authorBram Moolenaar <Bram@vim.org>
Sun, 19 Jun 2011 22:45:58 +0000 (00:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 19 Jun 2011 22:45:58 +0000 (00:45 +0200)
Problem:    "2gj" does not always move to the correct position.
Solution:   Get length of line after moving to a next line. (James Vega)

src/normal.c
src/version.c

index 344bd7db70988101d42de78519a33620a23fa2e4..bd6f1f239cb76c99b2359874835143a96c9192e9 100644 (file)
@@ -4533,6 +4533,7 @@ nv_screengo(oap, dir, dist)
                }
                curwin->w_cursor.lnum++;
                curwin->w_curswant %= width2;
+               linelen = linetabsize(ml_get_curline());
            }
        }
       }
index dd16231be39090bbb6452bbceaa7202bdac910f9..81ab3f7a674f2d41876fcfb5d19998af64e8ca53 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    228,
 /**/
     227,
 /**/