diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-22 12:41:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-22 12:41:55 +0000 |
commit | 145a6afe3a4be54689af5233710c85346ba1e5da (patch) | |
tree | 5fbf33c2bf076ffebc05b94fb286f4dcda114b74 /src/testdir/test_cmdline.vim | |
parent | a6759381a590b2d395e05b109ca9ccfc356be5a8 (diff) |
patch 9.0.1228: fuzzy menu completion is only tested in the GUIv9.0.1228
Problem: Fuzzy menu completion is only tested in the GUI.
Solution: Make fuzzy menu completion test work without GUI.
(closes #11861)
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r-- | src/testdir/test_cmdline.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 9406a7eac4..8ed89c6891 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -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 |