changeset 2911:c6df8554b39d v7.3.228

updated for version 7.3.228 Problem: "2gj" does not always move to the correct position. Solution: Get length of line after moving to a next line. (James Vega)
author Bram Moolenaar <bram@vim.org>
date Mon, 20 Jun 2011 00:45:58 +0200
parents a60195a05884
children 9b9e9cb768da
files src/normal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -4533,6 +4533,7 @@ nv_screengo(oap, dir, dist)
 		}
 		curwin->w_cursor.lnum++;
 		curwin->w_curswant %= width2;
+		linelen = linetabsize(ml_get_curline());
 	    }
 	}
       }
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    228,
+/**/
     227,
 /**/
     226,