Patch 9.0.1228

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 22, 2023, 7:42:44 AM1/22/23
to vim...@googlegroups.com

Patch 9.0.1228
Problem: Fuzzy menu completion is only tested in the GUI.
Solution: Make fuzzy menu completion test work without GUI.
(closes #11861)
Files: src/testdir/test_cmdline.vim


*** ../vim-9.0.1227/src/testdir/test_cmdline.vim 2023-01-21 21:56:02.186002026 +0000
--- src/testdir/test_cmdline.vim 2023-01-22 12:35:45.116210393 +0000
***************
*** 435,440 ****
--- 435,441 ----
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,2933 ****
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
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&
endfunc

" :messages suboptions fuzzy completion
--- 2915,2939 ----
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()
! 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
*** ../vim-9.0.1227/src/version.c 2023-01-21 21:56:02.186002026 +0000
--- src/version.c 2023-01-22 12:37:07.116290912 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1228,
/**/

--
Everyone has a photographic memory. Some don't have film.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages