diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-28 17:52:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-28 17:52:24 +0100 |
commit | a96edb736d4274fc4aea460800780e06e1510812 (patch) | |
tree | 49b65efbf351fe23cf3340d9d8c07286f8ee778c /src/evalfunc.c | |
parent | 05c7f5d3d03440da6f69604f8c06c4e3d90d2a26 (diff) |
patch 8.2.4841: empty string considered an error for expand()v8.2.4841
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 #10307)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index c4abfddc2c..4456f696db 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4105,7 +4105,7 @@ f_expand(typval_T *argvars, typval_T *rettv) if (p_verbose == 0) ++emsg_off; - result = eval_vars(s, s, &len, NULL, &errormsg, NULL); + result = eval_vars(s, s, &len, NULL, &errormsg, NULL, FALSE); if (p_verbose == 0) --emsg_off; else if (errormsg != NULL) |