comparison src/filepath.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 d0241e74bfdb
comparison
equal deleted inserted replaced
28634:141b43248424 28635:dfe18756f2ad
3095 3095
3096 if (*exp_pat == '%' || *exp_pat == '#' || *exp_pat == '<') 3096 if (*exp_pat == '%' || *exp_pat == '#' || *exp_pat == '<')
3097 { 3097 {
3098 ++emsg_off; 3098 ++emsg_off;
3099 eval_pat = eval_vars(exp_pat, exp_pat, &usedlen, 3099 eval_pat = eval_vars(exp_pat, exp_pat, &usedlen,
3100 NULL, &ignored_msg, NULL); 3100 NULL, &ignored_msg, NULL, TRUE);
3101 --emsg_off; 3101 --emsg_off;
3102 if (eval_pat != NULL) 3102 if (eval_pat != NULL)
3103 exp_pat = concat_str(eval_pat, exp_pat + usedlen); 3103 exp_pat = concat_str(eval_pat, exp_pat + usedlen);
3104 } 3104 }
3105 3105