diff src/normal.c @ 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 71e1da07e141
children 0bef86c5c985
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());
 	    }
 	}
       }