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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user