0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 8.2.2217: Vim9: command modifiers not restored in catch block

Problem:    Vim9: command modifiers not restored in catch block.
Solution:   Restore command modifiers. (closes #7542)
This commit is contained in:
Bram Moolenaar
2020-12-25 19:47:24 +01:00
parent 6e2c2c50ba
commit 20a762987e
3 changed files with 16 additions and 0 deletions

View File

@@ -546,6 +546,13 @@ def Test_modifier_silent_unsilent()
silent EchoThere()
assert_equal("\nthere", execute(':1messages'))
try
silent eval [][0]
catch
echomsg "caught"
endtry
assert_equal("\ncaught", execute(':1messages'))
enddef
def Test_range_after_command_modifier()