0
0
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:
Bram Moolenaar
2021-07-26 21:10:11 +02:00
parent ff34bee3a2
commit 678b207fb1
4 changed files with 23 additions and 2 deletions

View File

@@ -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()