]> granicus.if.org Git - vim/commitdiff
patch 9.0.0866: no test for what patch 8.2.2207 fixes v9.0.0866
authorzeertzjq <zeertzjq@outlook.com>
Sat, 12 Nov 2022 17:30:25 +0000 (17:30 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Nov 2022 17:30:25 +0000 (17:30 +0000)
Problem:    No test for what patch 8.2.2207 fixes.
Solution:   Add a test case. (closes #11531)

src/testdir/test_popup.vim
src/version.c

index f28efc925760fb2f3f21126f6c5264b1173d1ca1..9f727a000f97f4d016ed27671d2bf984b828305c 100644 (file)
@@ -862,7 +862,6 @@ func Test_popup_position()
 endfunc
 
 func Test_popup_command()
-  CheckScreendump
   CheckFeature menu
 
   menu Test.Foo Foo
@@ -870,13 +869,18 @@ func Test_popup_command()
   call assert_fails('popup Test.Foo.X', 'E327:')
   call assert_fails('popup Foo', 'E337:')
   unmenu Test.Foo
+endfunc
+
+func Test_popup_command_dump()
+  CheckFeature menu
+  CheckScreendump
 
   let script =<< trim END
     func StartTimer()
       call timer_start(100, {-> ChangeMenu()})
     endfunc
     func ChangeMenu()
-      nunmenu PopUp.&Paste
+      aunmenu PopUp.&Paste
       nnoremenu 1.40 PopUp.&Paste :echomsg "pasted"<CR>
       echomsg 'changed'
     endfunc
index 98e7fd0b5287cccd6742c3b70d9b60ca6829535e..02ffdeca2f15cb657bc64f9f83b2aaff4d68d731 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    866,
 /**/
     865,
 /**/