comparison src/testdir/test_vim9_disassemble.vim @ 23586:8c5374ec8a3d v8.2.2335

patch 8.2.2335: Vim9: "silent return" does not restore command modifiers Commit: https://github.com/vim/vim/commit/7cd24227c02afdb4249db406e2174eda1e6b36b4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 12 18:58:39 2021 +0100 patch 8.2.2335: Vim9: "silent return" does not restore command modifiers Problem: Vim9: "silent return" does not restore command modifiers. Solution: Resture command modifiers before returning. (closes https://github.com/vim/vim/issues/7649)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jan 2021 19:00:07 +0100
parents f50ee1ae4d9b
children 1974c5122506
comparison
equal deleted inserted replaced
23585:f912c5069505 23586:8c5374ec8a3d
1840 '\d CMDMOD_REV\_s*' .. 1840 '\d CMDMOD_REV\_s*' ..
1841 '\d RETURN 0', 1841 '\d RETURN 0',
1842 res) 1842 res)
1843 enddef 1843 enddef
1844 1844
1845 def s:SilentReturn(): string
1846 silent return "done"
1847 enddef
1848
1849 def Test_silent_return()
1850 var res = execute('disass s:SilentReturn')
1851 assert_match('<SNR>\d*_SilentReturn\_s*' ..
1852 'silent return "done"\_s*' ..
1853 '\d CMDMOD silent\_s*' ..
1854 '\d PUSHS "done"\_s*' ..
1855 '\d CMDMOD_REV\_s*' ..
1856 '\d RETURN',
1857 res)
1858 enddef
1859
1845 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker 1860 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker