diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-11 19:34:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-11 19:34:54 +0100 |
commit | 4954019c93a2bb5a0b1af54b5961c933beeb56f4 (patch) | |
tree | ca396e8fbc00a7f8934013fba5601ad1206903bc /src/testdir | |
parent | 0efd1bdcf4891f9ef2537e4c3d50a379186dca5f (diff) |
patch 8.1.2420: crash when calling popup_close() in win_execute()v8.1.2420
Problem: Crash when calling popup_close() in win_execute().
Solution: Disallow popup_close() in popup window. (Yasuhiro Matsumoto,
closes #5345)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_popupwin.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 5d7f46f9a3..d5ee7160a1 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -891,6 +891,10 @@ func Test_win_execute_closing_curwin() let winid = popup_create('some text', {}) call assert_fails('call win_execute(winid, winnr() .. "close")', 'E994') call popup_clear() + + let winid = popup_create('some text', {}) + call assert_fails('call win_execute(winid, printf("normal! :\<C-u>call popup_close(%d)\<CR>", winid))', 'E994') + call popup_clear() endfunc func Test_win_execute_not_allowed() |