Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -1704,5 +1704,19 @@ def Test_block_scoped_var() CheckScriptSuccess(lines) enddef +def Test_reset_did_emsg() + var lines =<< trim END + @s = 'blah' + au BufWinLeave * # + def Func() + var winid = popup_create('popup', {}) + exe '*s' + popup_close(winid) + enddef + Func() + END + CheckScriptFailure(lines, 'E492:', 8) +enddef + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker