comparison 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
comparison
equal deleted inserted replaced
28634:141b43248424 28635:dfe18756f2ad
4103 { 4103 {
4104 char *errormsg = NULL; 4104 char *errormsg = NULL;
4105 4105
4106 if (p_verbose == 0) 4106 if (p_verbose == 0)
4107 ++emsg_off; 4107 ++emsg_off;
4108 result = eval_vars(s, s, &len, NULL, &errormsg, NULL); 4108 result = eval_vars(s, s, &len, NULL, &errormsg, NULL, FALSE);
4109 if (p_verbose == 0) 4109 if (p_verbose == 0)
4110 --emsg_off; 4110 --emsg_off;
4111 else if (errormsg != NULL) 4111 else if (errormsg != NULL)
4112 emsg(errormsg); 4112 emsg(errormsg);
4113 if (rettv->v_type == VAR_LIST) 4113 if (rettv->v_type == VAR_LIST)