]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.214 v7.3.214
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2011 20:03:23 +0000 (22:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2011 20:03:23 +0000 (22:03 +0200)
Problem:    The text displayed by ":z-" isn't exactly like old Vi.
Solution:   Add one to the start line number. (ChangZhuo Chen)

src/ex_cmds.c
src/version.c

index 64c1371bd36669fb23c38b0304621fc222c4357c..43e861ae83a74864ca572d78deca12ed35408a51 100644 (file)
@@ -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;
 
index 7ae798422a12efbef679d8df7642c9edf05dd45f..235ae8026b78deb10d1f8131dcc2624a298533ef 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    214,
 /**/
     213,
 /**/