]> granicus.if.org Git - vim/commitdiff
patch 7.4.1112 v7.4.1112
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Jan 2016 21:49:34 +0000 (22:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Jan 2016 21:49:34 +0000 (22:49 +0100)
Problem:    When using ":next" with an illegal file name no error is reported.
Solution:   Give an error message.

src/ex_cmds2.c
src/version.c

index 676cf117b42af4404dfafffde23b879112c31d62..5b113668d1d77be79c1111d73fba1e9474718044 100644 (file)
@@ -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;
index ac54f8496ba600fc0b467b33d8ce4316362941de..4cce40b91181d68fda8f3a0244a1ebbd89c20a4d 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1112,
 /**/
     1111,
 /**/