Mercurial > vim
comparison src/quickfix.c @ 26364:baf0d27eb024 v8.2.3713
patch 8.2.3713: MS-Windows: no error if vimgrep pattern is not matching
Commit: https://github.com/vim/vim/commit/0b226f60be5c30c32fb01fc0b6dc11286e7e2313
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Dec 1 10:54:24 2021 +0000
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 https://github.com/vim/vim/issues/9245,
closes #8762)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Dec 2021 12:00:05 +0100 |
parents | 6b4f017d7005 |
children | 824fe105f5b9 |
comparison
equal
deleted
inserted
replaced
26363:44a6acdbdbfe | 26364:baf0d27eb024 |
---|---|
6120 emsg(_("E683: File name missing or invalid pattern")); | 6120 emsg(_("E683: File name missing or invalid pattern")); |
6121 return FAIL; | 6121 return FAIL; |
6122 } | 6122 } |
6123 | 6123 |
6124 // Parse the list of arguments, wildcards have already been expanded. | 6124 // Parse the list of arguments, wildcards have already been expanded. |
6125 if (get_arglist_exp(p, &args->fcount, &args->fnames, TRUE) == FAIL) | 6125 if ((get_arglist_exp(p, &args->fcount, &args->fnames, TRUE) == FAIL) || |
6126 return FAIL; | 6126 args->fcount == 0) |
6127 if (args->fcount == 0) | |
6128 { | 6127 { |
6129 emsg(_(e_nomatch)); | 6128 emsg(_(e_nomatch)); |
6130 return FAIL; | 6129 return FAIL; |
6131 } | 6130 } |
6132 | 6131 |