mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1112
Problem: When using ":next" with an illegal file name no error is reported. Solution: Give an error message.
This commit is contained in:
@@ -2147,9 +2147,7 @@ do_arglist(str, what, after)
|
|||||||
i = expand_wildcards(new_ga.ga_len, (char_u **)new_ga.ga_data,
|
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);
|
&exp_count, &exp_files, EW_DIR|EW_FILE|EW_ADDSLASH|EW_NOTFOUND);
|
||||||
ga_clear(&new_ga);
|
ga_clear(&new_ga);
|
||||||
if (i == FAIL)
|
if (i == FAIL || exp_count == 0)
|
||||||
return FAIL;
|
|
||||||
if (exp_count == 0)
|
|
||||||
{
|
{
|
||||||
EMSG(_(e_nomatch));
|
EMSG(_(e_nomatch));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1112,
|
||||||
/**/
|
/**/
|
||||||
1111,
|
1111,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user