mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1467: Vim9: :echomsg doesn't like a dict argument
Problem: Vim9: :echomsg doesn't like a dict argument. Solution: Convert arguments like in legacy script. (closes #6717)
This commit is contained in:
@@ -2102,6 +2102,9 @@ def Test_execute_cmd()
|
||||
execute 'echomsg' (n ? '"true"' : '"no"')
|
||||
assert_match('^true$', Screenline(&lines))
|
||||
|
||||
echomsg [1, 2, 3] #{a: 1, b: 2}
|
||||
assert_match('^\[1, 2, 3\] {''a'': 1, ''b'': 2}$', Screenline(&lines))
|
||||
|
||||
call CheckDefFailure(['execute xxx'], 'E1001:')
|
||||
call CheckDefFailure(['execute "cmd"# comment'], 'E488:')
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user