diff options
author | Bram Moolenaar <bram@vim.org> | 2011-06-20 00:45:58 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2011-06-20 00:45:58 +0200 |
commit | 51b0dfcf54ab3adb46f29129ea758db8d9ee97fa (patch) | |
tree | 0ea2fd83f874ca1f9eee832e63eec69d41bd6e58 | |
parent | a4f45ab36b96e7ea2b16c6e101480845ca1517c6 (diff) | |
download | vim-51b0dfcf54ab3adb46f29129ea758db8d9ee97fa.tar.gz |
Problem: "2gj" does not always move to the correct position.
Solution: Get length of line after moving to a next line. (James Vega)
-rw-r--r-- | src/normal.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index 344bd7db..bd6f1f23 100644 --- 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()); } } } diff --git a/src/version.c b/src/version.c index dd16231b..81ab3f7a 100644 --- 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, |