]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.617 v7.4.617
authorBram Moolenaar <Bram@vim.org>
Tue, 3 Feb 2015 18:10:53 +0000 (19:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 3 Feb 2015 18:10:53 +0000 (19:10 +0100)
Problem:    Wrong ":argdo" range does not cause an error.
Solution:   Reset "cmd" to NULL. (Marcin Szamotulski, Ingo Karkat)

src/ex_docmd.c
src/version.c

index a59bbd1bbd3e5fd8f451343a130d6cabad3e5a2a..453d83e8d63763399ff85c608d9ab47d01d1ab54 100644 (file)
@@ -4405,6 +4405,7 @@ get_address(ptr, addr_type, skip, to_other_file)
                if (addr_type != ADDR_LINES)
                {
                    EMSG(_(e_invaddr));
+                   cmd = NULL;
                    goto error;
                }
                if (skip)
@@ -4436,6 +4437,7 @@ get_address(ptr, addr_type, skip, to_other_file)
                if (addr_type != ADDR_LINES)
                {
                    EMSG(_(e_invaddr));
+                   cmd = NULL;
                    goto error;
                }
                if (skip)       /* skip "/pat/" */
@@ -4484,6 +4486,7 @@ get_address(ptr, addr_type, skip, to_other_file)
                if (addr_type != ADDR_LINES)
                {
                    EMSG(_(e_invaddr));
+                   cmd = NULL;
                    goto error;
                }
                if (*cmd == '&')
@@ -4575,7 +4578,8 @@ get_address(ptr, addr_type, skip, to_other_file)
                n = getdigits(&cmd);
            if (addr_type == ADDR_LOADED_BUFFERS
                    || addr_type == ADDR_BUFFERS)
-               lnum = compute_buffer_local_count(addr_type, lnum, (i == '-') ? -1 * n : n);
+               lnum = compute_buffer_local_count(
+                                   addr_type, lnum, (i == '-') ? -1 * n : n);
            else if (i == '-')
                lnum -= n;
            else
@@ -4662,7 +4666,8 @@ invalid_range(eap)
                    return (char_u *)_(e_invrange);
                break;
            case ADDR_ARGUMENTS:
-               if (eap->line2 > ARGCOUNT + (!ARGCOUNT))    // add 1 if ARCOUNT is 0
+               /* add 1 if ARGCOUNT is 0 */
+               if (eap->line2 > ARGCOUNT + (!ARGCOUNT))
                    return (char_u *)_(e_invrange);
                break;
            case ADDR_BUFFERS:
index 2c21e4a7d5360d8f68b18d8edbd550ff8780896d..138a29ab56b210513b495703845a9243fd0fce8b 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    617,
 /**/
     616,
 /**/