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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user