]> granicus.if.org Git - vim/commitdiff
patch 9.0.1228: fuzzy menu completion is only tested in the GUI v9.0.1228
authorzeertzjq <zeertzjq@outlook.com>
Sun, 22 Jan 2023 12:41:55 +0000 (12:41 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 Jan 2023 12:41:55 +0000 (12:41 +0000)
Problem:    Fuzzy menu completion is only tested in the GUI.
Solution:   Make fuzzy menu completion test work without GUI.
            (closes #11861)

src/testdir/test_cmdline.vim
src/version.c

index 9406a7eac4a6634f6d4220b8c3234ce4e43e606b..8ed89c6891674b219607be125af55480ee40f0df 100644 (file)
@@ -435,6 +435,7 @@ func Test_getcompletion()
     call assert_true(matchcount > 0)
     let matchcount = len(getcompletion('File.', 'menu'))
     call assert_true(matchcount > 0)
+    source $VIMRUNTIME/delmenu.vim
   endif
 
   let l = getcompletion('v:n', 'var')
@@ -2914,20 +2915,25 @@ func Test_fuzzy_completion_abbr()
   call assert_equal("\"iabbr WaitForCompletion", @:)
   call feedkeys(":iabbr a1z\<Tab>\<C-B>\"\<CR>", 'tx')
   call assert_equal("\"iabbr a1z\t", @:)
+
   iunabbrev WaitForCompletion
   set wildoptions&
 endfunc
 
 " menu name fuzzy completion
 func Test_fuzzy_completion_menu()
-  CheckGui
+  CheckFeature menu
+
+  source $VIMRUNTIME/menu.vim
   set wildoptions&
   call feedkeys(":menu pup\<Tab>\<C-B>\"\<CR>", 'tx')
   call assert_equal('"menu pup', @:)
   set wildoptions=fuzzy
   call feedkeys(":menu pup\<Tab>\<C-B>\"\<CR>", 'tx')
   call assert_equal('"menu PopUp.', @:)
+
   set wildoptions&
+  source $VIMRUNTIME/delmenu.vim
 endfunc
 
 " :messages suboptions fuzzy completion
index ebcd70ff358fe8f097c1e7fef0cd2ed0e2e14a64..361567b2573ec09046ab49963f58666686156b71 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1228,
 /**/
     1227,
 /**/