mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
vim-patch:8.2.3713: MS-Windows: no error if vimgrep pattern is not matching (#20947)
Problem: MS-Windows: No error message if vimgrep pattern is not matching.
Solution: Give an error message. (Christian Brabandt, closes vim/vim#9245,
closes vim/vim#8762)
0b226f60be
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5325,10 +5325,8 @@ static int vgr_process_args(exarg_T *eap, vgr_args_T *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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user