comparison src/testdir/test_vim9_func.vim @ 22948:707b90980de5 v8.2.2021

patch 8.2.2021: Vim9: get E1099 when autocommand resets did_emsg Commit: https://github.com/vim/vim/commit/eeece9e4885df6190d2615b199efa2b1d22c4bdb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 20 19:26:48 2020 +0100 patch 8.2.2021: Vim9: get E1099 when autocommand resets did_emsg Problem: Vim9: get E1099 when autocommand resets did_emsg. Solution: Add did_emsg_cumul. (closes https://github.com/vim/vim/issues/7336)
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Nov 2020 19:30:03 +0100
parents 4759d13193fb
children dcb59b1cc0c1
comparison
equal deleted inserted replaced
22947:8625a16d18dc 22948:707b90980de5
1702 Func() 1702 Func()
1703 END 1703 END
1704 CheckScriptSuccess(lines) 1704 CheckScriptSuccess(lines)
1705 enddef 1705 enddef
1706 1706
1707 def Test_reset_did_emsg()
1708 var lines =<< trim END
1709 @s = 'blah'
1710 au BufWinLeave * #
1711 def Func()
1712 var winid = popup_create('popup', {})
1713 exe '*s'
1714 popup_close(winid)
1715 enddef
1716 Func()
1717 END
1718 CheckScriptFailure(lines, 'E492:', 8)
1719 enddef
1720
1707 1721
1708 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker 1722 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker