changeset 7625:b4384c581806 v7.4.1112

commit https://github.com/vim/vim/commit/2db5c3b3ceeaded7fb5a64dc5cb22b0cb95b78a1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 16 22:49:34 2016 +0100 patch 7.4.1112 Problem: When using ":next" with an illegal file name no error is reported. Solution: Give an error message.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jan 2016 23:00:05 +0100
parents 1f60c80aff37
children 5d57c7117629
files src/ex_cmds2.c src/version.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2147,9 +2147,7 @@ do_arglist(str, what, after)
 	i = expand_wildcards(new_ga.ga_len, (char_u **)new_ga.ga_data,
 		&exp_count, &exp_files, EW_DIR|EW_FILE|EW_ADDSLASH|EW_NOTFOUND);
 	ga_clear(&new_ga);
-	if (i == FAIL)
-	    return FAIL;
-	if (exp_count == 0)
+	if (i == FAIL || exp_count == 0)
 	{
 	    EMSG(_(e_nomatch));
 	    return FAIL;
--- 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 */
 /**/
+    1112,
+/**/
     1111,
 /**/
     1110,