summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_popup.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-26 12:24:41 +0100
committerBram Moolenaar <Bram@vim.org>2022-07-26 12:24:41 +0100
commit92a1678d488b7d023ddf2cd493a6ee0d7fcf1928 (patch)
treecc1bfa906c4c3cb5d3887bb0f28ddb6e70275be8 /src/testdir/test_popup.vim
parentbe3dbda871ffd1b61f52b9519c23772f62381c67 (diff)
patch 9.0.0076: no test for what patch 8.1.1424 fixesv9.0.0076
Problem: No test for what patch 8.1.1424 fixes. Solution: Add a test. (closes #10789)
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r--src/testdir/test_popup.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim
index 5fb7e82229..af14167d57 100644
--- a/src/testdir/test_popup.vim
+++ b/src/testdir/test_popup.vim
@@ -984,6 +984,25 @@ func Test_menu_only_exists_in_terminal()
endtry
endfunc
+" This used to crash before patch 8.1.1424
+func Test_popup_delete_when_shown()
+ CheckFeature menu
+ CheckNotGui
+
+ func Func()
+ popup Foo
+ return "\<Ignore>"
+ endfunc
+
+ nmenu Foo.Bar :
+ nnoremap <expr> <F2> Func()
+ call feedkeys("\<F2>\<F2>\<Esc>", 'xt')
+
+ delfunc Func
+ nunmenu Foo.Bar
+ nunmap <F2>
+endfunc
+
func Test_popup_complete_info_01()
new
inoremap <buffer><F5> <C-R>=complete_info().mode<CR>