summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2015-02-03 19:10:53 +0100
committerBram Moolenaar <bram@vim.org>2015-02-03 19:10:53 +0100
commitfafd562f7e03c71ba126af7e0176060467e5e125 (patch)
treeeea53d83563d439110ab2bd6b9c61922208337df
parent92c908d68e69b4329bf90c461ab2291fcd897e07 (diff)
downloadvim-fafd562f7e03c71ba126af7e0176060467e5e125.tar.gz
updated for version 7.4.617v7.4.617v7-4-617
Problem: Wrong ":argdo" range does not cause an error. Solution: Reset "cmd" to NULL. (Marcin Szamotulski, Ingo Karkat)
-rw-r--r--src/ex_docmd.c9
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index a59bbd1b..453d83e8 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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:
diff --git a/src/version.c b/src/version.c
index 2c21e4a7..138a29ab 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 617,
+/**/
616,
/**/
615,