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)
diff --git a/src/quickfix.c b/src/quickfix.c
index 4405d4b..d7c0a88 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -6122,9 +6122,8 @@
}
// 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;