]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.568 v7.4.568
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Jan 2015 10:25:05 +0000 (11:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Jan 2015 10:25:05 +0000 (11:25 +0100)
Problem:    Giving an error for ":0wincmd w" is a problem for some plugins.
Solution:   Allow the zero in the range. (Marcin Szamotulski)

src/ex_docmd.c
src/testdir/test_command_count.ok
src/version.c

index 3276abfdbc48daabb53540de06eefa5d9a73439a..c36f4074066229a8835b49ac28757eb891bbaa14 100644 (file)
@@ -4686,8 +4686,7 @@ invalid_range(eap)
                    return (char_u *)_(e_invrange);
                break;
            case ADDR_WINDOWS:
-               if (eap->line1 < 1
-                       || eap->line2 > LAST_WIN_NR)
+               if (eap->line2 > LAST_WIN_NR)
                    return (char_u *)_(e_invrange);
                break;
            case ADDR_TABS:
index a936715b36a93f47b0cb3323f95dddfba8d667ba..d554ae765d13458baff2c5313e6ea84bec11df45 100644 (file)
@@ -21,8 +21,8 @@ LocalRangeLines 2 5
 4argu d
 1argu a
 100b E16: Invalid range
-0close E16: Invalid range
-$close 4
+0close 
+$close 3
 $+close E16: Invalid range
 $tabe 2
 $+tabe E16: Invalid range
index 8b3ecbe90c6f179b350c51e0a02debcd9d842bd0..4f9777ffa978a9c351b3d970f0b69108108b1d7c 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    568,
 /**/
     567,
 /**/