diff options
author | Bram Moolenaar <bram@vim.org> | 2011-06-12 22:03:23 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2011-06-12 22:03:23 +0200 |
commit | b25c6f065a615cacfcf3d1906163452aec6b2fca (patch) | |
tree | caa5de65e47ae36cd7579a21b53437eb700b7351 | |
parent | 850b7d7481a4df7d720b45db8659089452e2f916 (diff) | |
download | vim-b25c6f065a615cacfcf3d1906163452aec6b2fca.tar.gz |
Problem: The text displayed by ":z-" isn't exactly like old Vi.
Solution: Add one to the start line number. (ChangZhuo Chen)
-rw-r--r-- | src/ex_cmds.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 64c1371b..43e861ae 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4097,8 +4097,8 @@ ex_z(eap) switch (*kind) { case '-': - start = lnum - bigness * (linenr_T)(x - kind); - end = start + bigness; + start = lnum - bigness * (linenr_T)(x - kind) + 1; + end = start + bigness - 1; curs = end; break; diff --git a/src/version.c b/src/version.c index 7ae79842..235ae802 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 */ /**/ + 214, +/**/ 213, /**/ 212, |