mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.2.3224: cannot call script-local function after :vim9cmd
Problem: Cannot call script-local function after :vim9cmd. (Christian J. Robinson) Solution: Skip over "<SNR>123".
This commit is contained in:
@@ -14,6 +14,20 @@ def Test_vim9cmd()
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
assert_fails('vim9cmd', 'E1164:')
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
def Foo()
|
||||
g:found_bar = "bar"
|
||||
enddef
|
||||
nmap ,; :vim9cmd <SID>Foo()<CR>
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
feedkeys(',;', 'xt')
|
||||
assert_equal("bar", g:found_bar)
|
||||
|
||||
nunmap ,;
|
||||
unlet g:found_bar
|
||||
enddef
|
||||
|
||||
def Test_edit_wildcards()
|
||||
|
Reference in New Issue
Block a user