summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-06-12 22:03:23 +0200
committerBram Moolenaar <Bram@vim.org>2011-06-12 22:03:23 +0200
commitd9758e37ee2a2aa75edfca8ddf39780b9b619dec (patch)
tree5ca79c065a8565a325a4bc4a4da4790da5c11c6d /src/ex_cmds.c
parent6ec154b57da547881297fd229fdb20b5aeec74a7 (diff)
downloadvim-git-d9758e37ee2a2aa75edfca8ddf39780b9b619dec.tar.gz
updated for version 7.3.214v7.3.214
Problem: The text displayed by ":z-" isn't exactly like old Vi. Solution: Add one to the start line number. (ChangZhuo Chen)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 64c1371bd..43e861ae8 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;