Mercurial > vim
diff src/eval.c @ 26562:479022b3e7bd v8.2.3810
patch 8.2.3810: Vim9: expr4 test fails on MS-Windows
Commit: https://github.com/vim/vim/commit/b334137acffd7a2b2ab8524e54d4c55ebf4518ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 14 18:57:45 2021 +0000
patch 8.2.3810: Vim9: expr4 test fails on MS-Windows
Problem: Vim9: expr4 test fails on MS-Windows.
Solution: Do not give an error for a missing function name when skipping.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Dec 2021 20:00:04 +0100 |
parents | 454a1c9ef797 |
children | 9f7568104726 |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -2001,7 +2001,7 @@ eval_func( // Need to make a copy, in case evaluating the arguments makes // the name invalid. s = vim_strsave(s); - if (s == NULL || *s == NUL || (flags & EVAL_CONSTANT)) + if (s == NULL || (evaluate && (*s == NUL || (flags & EVAL_CONSTANT)))) ret = FAIL; else {