aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/helpers.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-14 10:58:29 +0800
committerGitHub <noreply@github.com>2023-04-14 10:58:29 +0800
commit37bb40701d672d5213ec1be4e21d7808aee968e7 (patch)
tree8f2c7db06448099e9ee768e2dbd718514e5ef9ca /test/unit/eval/helpers.lua
parentf64f6706e58061f0a3de530edd1f10e331cd1525 (diff)
parente8c25aac8d864e7033bcfe4640ee44054035f61d (diff)
downloadrneovim-37bb40701d672d5213ec1be4e21d7808aee968e7.tar.gz
rneovim-37bb40701d672d5213ec1be4e21d7808aee968e7.tar.bz2
rneovim-37bb40701d672d5213ec1be4e21d7808aee968e7.zip
Merge pull request #23078 from zeertzjq/vim-8.2.1047
vim-patch:8.2.{1047,1048,1049,1050,1052},9.0.1447
Diffstat (limited to 'test/unit/eval/helpers.lua')
-rw-r--r--test/unit/eval/helpers.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/eval/helpers.lua b/test/unit/eval/helpers.lua
index 0694fceaec..883f01bd84 100644
--- a/test/unit/eval/helpers.lua
+++ b/test/unit/eval/helpers.lua
@@ -512,7 +512,8 @@ end
local function eval0(expr)
local tv = ffi.gc(ffi.new('typval_T', {v_type=eval.VAR_UNKNOWN}),
eval.tv_clear)
- if eval.eval0(to_cstr(expr), tv, nil, eval.EVAL_EVALUATE) == 0 then
+ local evalarg = ffi.new('evalarg_T', {eval_flags = eval.EVAL_EVALUATE})
+ if eval.eval0(to_cstr(expr), tv, nil, evalarg) == 0 then
return nil
else
return tv