mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
vim-patch:9.0.0238: Shift-Tab shows matches on cmdline when 'wildmenu' is off (#21355)
Problem: Shift-Tab shows matches on cmdline when 'wildmenu' is off.
Solution: Only show matches when 'wildmode' contains "list". (closes vim/vim#10951)
300175fd7f
Code change has already been ported.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -869,6 +869,24 @@ func Test_cmdline_complete_user_cmd()
|
|||||||
call feedkeys(":Foo b\\x\<Tab>\<Home>\"\<cr>", 'tx')
|
call feedkeys(":Foo b\\x\<Tab>\<Home>\"\<cr>", 'tx')
|
||||||
call assert_equal('"Foo b\x', @:)
|
call assert_equal('"Foo b\x', @:)
|
||||||
delcommand Foo
|
delcommand Foo
|
||||||
|
|
||||||
|
redraw
|
||||||
|
call assert_equal('~', Screenline(&lines - 1))
|
||||||
|
command! FooOne :
|
||||||
|
command! FooTwo :
|
||||||
|
|
||||||
|
set nowildmenu
|
||||||
|
call feedkeys(":Foo\<Tab>\<Home>\"\<cr>", 'tx')
|
||||||
|
call assert_equal('"FooOne', @:)
|
||||||
|
call assert_equal('~', Screenline(&lines - 1))
|
||||||
|
|
||||||
|
call feedkeys(":Foo\<S-Tab>\<Home>\"\<cr>", 'tx')
|
||||||
|
call assert_equal('"FooTwo', @:)
|
||||||
|
call assert_equal('~', Screenline(&lines - 1))
|
||||||
|
|
||||||
|
delcommand FooOne
|
||||||
|
delcommand FooTwo
|
||||||
|
set wildmenu&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_complete_user_cmd()
|
func Test_complete_user_cmd()
|
||||||
|
Reference in New Issue
Block a user