diff src/evalfunc.c @ 28635:dfe18756f2ad v8.2.4841

patch 8.2.4841: empty string considered an error for expand() Commit: https://github.com/vim/vim/commit/a96edb736d4274fc4aea460800780e06e1510812 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 28 17:52:24 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Apr 2022 19:00:05 +0200
parents 5ef46b938c6e
children 38f7a132bba3
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4105,7 +4105,7 @@ f_expand(typval_T *argvars, typval_T *re
 
 	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)