aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-23 13:24:40 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-23 17:48:12 +0800
commitf1b8683b8c2f4a48d501c9dedef664f17761b8ac (patch)
tree83f5692a8a4f400c0828d28794067875071fbe05 /src/nvim/path.c
parentd0b9fe2d5a95def67acc83f713b932f3f12dea08 (diff)
downloadrneovim-f1b8683b8c2f4a48d501c9dedef664f17761b8ac.tar.gz
rneovim-f1b8683b8c2f4a48d501c9dedef664f17761b8ac.tar.bz2
rneovim-f1b8683b8c2f4a48d501c9dedef664f17761b8ac.zip
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) https://github.com/vim/vim/commit/a96edb736d4274fc4aea460800780e06e1510812
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 1500254de5..d50ef87b62 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -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);