mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:9.1.1182: No cmdline completion for 'completefuzzycollect'
Problem:  No cmdline completion for the 'completefuzzycollect' option
          (after v9.1.1178)
Solution: Add cmdline completion for the 'completefuzzycollect' option,
          improve its description in optwin.vim (zeertzjq).
closes: vim/vim#16813
53d59ecc1d
No code change is needed in Nvim as Nvim uses expand_set_str_generic()
by default.
			
			
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| " These commands create the option window. | " These commands create the option window. | ||||||
| " | " | ||||||
| " Maintainer:	The Vim Project <https://github.com/vim/vim> | " Maintainer:	The Vim Project <https://github.com/vim/vim> | ||||||
| " Last Change:	2025 Feb 08 | " Last Change:	2025 Mar 07 | ||||||
| " Former Maintainer:	Bram Moolenaar <Bram@vim.org> | " Former Maintainer:	Bram Moolenaar <Bram@vim.org> | ||||||
|  |  | ||||||
| " If there already is an option window, jump to that one. | " If there already is an option window, jump to that one. | ||||||
| @@ -726,7 +726,7 @@ if has("insert_expand") | |||||||
|   call <SID>AddOption("complete", gettext("specifies how Insert mode completion works for CTRL-N and CTRL-P")) |   call <SID>AddOption("complete", gettext("specifies how Insert mode completion works for CTRL-N and CTRL-P")) | ||||||
|   call append("$", "\t" .. s:local_to_buffer) |   call append("$", "\t" .. s:local_to_buffer) | ||||||
|   call <SID>OptionL("cfc") |   call <SID>OptionL("cfc") | ||||||
|   call <SID>AddOption("completefuzzycollect", gettext("using fuzzy collect for defaule completion mode")) |   call <SID>AddOption("completefuzzycollect", gettext("use fuzzy collection for specific completion modes")) | ||||||
|   call <SID>OptionL("cpt") |   call <SID>OptionL("cpt") | ||||||
|   call <SID>AddOption("completeopt", gettext("whether to use a popup menu for Insert mode completion")) |   call <SID>AddOption("completeopt", gettext("whether to use a popup menu for Insert mode completion")) | ||||||
|   call <SID>OptionL("cot") |   call <SID>OptionL("cot") | ||||||
|   | |||||||
| @@ -513,6 +513,7 @@ func Test_set_completion_string_values() | |||||||
|   endif |   endif | ||||||
|   call assert_equal('.', getcompletion('set complete=', 'cmdline')[1]) |   call assert_equal('.', getcompletion('set complete=', 'cmdline')[1]) | ||||||
|   call assert_equal('menu', getcompletion('set completeopt=', 'cmdline')[1]) |   call assert_equal('menu', getcompletion('set completeopt=', 'cmdline')[1]) | ||||||
|  |   call assert_equal('keyword', getcompletion('set completefuzzycollect=', 'cmdline')[0]) | ||||||
|   if exists('+completeslash') |   if exists('+completeslash') | ||||||
|     call assert_equal('backslash', getcompletion('set completeslash=', 'cmdline')[1]) |     call assert_equal('backslash', getcompletion('set completeslash=', 'cmdline')[1]) | ||||||
|   endif |   endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq