1
0
forked from aniani/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 #10307)
This commit is contained in:
Bram Moolenaar
2022-04-28 17:52:24 +01:00
parent 05c7f5d3d0
commit a96edb736d
6 changed files with 15 additions and 8 deletions

View File

@@ -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)