From 27116a015981926f9f7a7600fe8cb7b849290082 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 26 Jul 2022 19:36:36 +0800 Subject: vim-patch:9.0.0076: no test for what patch 8.1.1424 fixes Problem: No test for what patch 8.1.1424 fixes. Solution: Add a test. (closes vim/vim#10789) https://github.com/vim/vim/commit/92a1678d488b7d023ddf2cd493a6ee0d7fcf1928 --- src/nvim/testdir/test_popup.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index a5e4be49f4..0486ed83ad 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -955,6 +955,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 "\" + endfunc + + nmenu Foo.Bar : + nnoremap Func() + call feedkeys("\\\", 'xt') + + delfunc Func + nunmenu Foo.Bar + nunmap +endfunc + func Test_popup_complete_info_01() new inoremap =complete_info().mode -- cgit