0
0
mirror of https://github.com/vim/vim.git synced 2025-11-01 10:07:16 -04:00

patch 8.2.2868: Vim9: when executing compiled expression trylevel is changed

Problem:    Vim9: When executing a compiled expression the trylevel at start
            is changed but not restored. (closes #8214)
Solution:   Restore the trylevel at start.
This commit is contained in:
Bram Moolenaar
2021-05-18 17:49:59 +02:00
parent 082a3bf961
commit cbe178e3dc
3 changed files with 67 additions and 57 deletions

View File

@@ -1014,12 +1014,15 @@ def Test_searchpair()
try
searchpairpos('(', '', ')', 'nW', '[0]->map("")')
catch
g:caught = 'yes'
endtry
enddef
Fail()
END
CheckScriptFailure(lines, 'E15:')
CheckScriptSuccess(lines)
assert_equal('yes', g:caught)
unlet g:caught
bwipe!
enddef