0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.3835: the inline-function example does not work

Problem:    The inline-function example does not work.
Solution:   Drop ":let".  Add EX_EXPR_ARG to CMD_var. (issue #9352)
This commit is contained in:
Bram Moolenaar
2021-12-17 12:45:22 +00:00
parent deda6441e4
commit 259f443a93
4 changed files with 18 additions and 4 deletions

View File

@@ -2557,10 +2557,19 @@ def Test_expr7_dict_in_block()
k: 0, }
}
MyCommand
command YourCommand {
g:global = {
key: 'value' }
}
YourCommand
assert_equal({key: 'value'}, g:global)
unlet g:global
END
CheckScriptSuccess(lines)
delcommand MyCommand
delcommand YourCommand
enddef
def Test_expr7_call_2bool()