0
0
mirror of https://github.com/vim/vim.git synced 2025-10-31 09:57:14 -04:00

patch 8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level

Problem:    Vim9: exception in ISN_INSTR caught at wrong level.
Solution:   Set the starting trylevel in exec_instructions(). (closes #8214)
This commit is contained in:
Bram Moolenaar
2021-05-16 15:24:49 +02:00
parent 3ec3217f04
commit ff65288aa8
5 changed files with 23 additions and 4 deletions

View File

@@ -1006,6 +1006,20 @@ def Test_searchpair()
normal 0f{
assert_equal([0, 0], searchpairpos('{', '', '}', '', 'col(".") > col'))
var lines =<< trim END
vim9script
setline(1, '()')
normal gg
def Fail()
try
searchpairpos('(', '', ')', 'nW', '[0]->map("")')
catch
endtry
enddef
Fail()
END
CheckScriptFailure(lines, 'E15:')
bwipe!
enddef