mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 18:28:19 +00:00
vim-patch:8.2.4841: empty string considered an error for expand()
Problem: Empty string considered an error for expand() when 'verbose' is
set. (Christian Brabandt)
Solution: Do not give an error for an empty result. (closes vim/vim#10307)
a96edb736d
This commit is contained in:
@@ -2135,7 +2135,8 @@ int expand_wildcards_eval(char_u **pat, int *num_file, char ***file, int flags)
|
||||
|
||||
if (*exp_pat == '%' || *exp_pat == '#' || *exp_pat == '<') {
|
||||
emsg_off++;
|
||||
eval_pat = eval_vars((char_u *)exp_pat, (char_u *)exp_pat, &usedlen, NULL, &ignored_msg, NULL);
|
||||
eval_pat = eval_vars((char_u *)exp_pat, (char_u *)exp_pat, &usedlen, NULL, &ignored_msg, NULL,
|
||||
true);
|
||||
emsg_off--;
|
||||
if (eval_pat != NULL) {
|
||||
exp_pat = (char *)concat_str(eval_pat, (char_u *)exp_pat + usedlen);
|
||||
|
Reference in New Issue
Block a user