0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3713: MS-Windows: no error if vimgrep pattern is not matching

Problem:    MS-Windows: No error message if vimgrep pattern is not matching.
Solution:   Give an error message. (Christian Brabandt, closes #9245,
            closes #8762)
This commit is contained in:
Christian Brabandt
2021-12-01 10:54:24 +00:00
committed by Bram Moolenaar
parent 05e59e3a9f
commit 0b226f60be
3 changed files with 19 additions and 3 deletions

View File

@@ -6122,9 +6122,8 @@ vgr_process_args(
}
// Parse the list of arguments, wildcards have already been expanded.
if (get_arglist_exp(p, &args->fcount, &args->fnames, TRUE) == FAIL)
return FAIL;
if (args->fcount == 0)
if ((get_arglist_exp(p, &args->fcount, &args->fnames, TRUE) == FAIL) ||
args->fcount == 0)
{
emsg(_(e_nomatch));
return FAIL;