mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.0.1228: fuzzy menu completion is only tested in the GUI (#21948)
Problem: Fuzzy menu completion is only tested in the GUI.
Solution: Make fuzzy menu completion test work without GUI.
(closes vim/vim#11861)
145a6afe3a
This commit is contained in:
@@ -429,6 +429,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')
|
||||
@@ -3036,20 +3037,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
|
||||
|
Reference in New Issue
Block a user