commit | 914968e66d54d9bc3e49aa376bfe136738e883e4 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jun 20 00:45:58 2011 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jun 20 00:45:58 2011 +0200 |
tree | 5864d8470ba14190b2edb78074506b0416b0c204 | |
parent | 54b08a5e78516d3516109f935b34c7d6663370a0 [diff] [blame] |
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)
diff --git a/src/normal.c b/src/normal.c index 344bd7d..bd6f1f2 100644 --- a/src/normal.c +++ b/src/normal.c
@@ -4533,6 +4533,7 @@ } curwin->w_cursor.lnum++; curwin->w_curswant %= width2; + linelen = linetabsize(ml_get_curline()); } } }