mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07: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:
parent
f69d531d84
commit
b5edea6553
@ -869,6 +869,24 @@ func Test_cmdline_complete_user_cmd()
|
||||
call feedkeys(":Foo b\\x\<Tab>\<Home>\"\<cr>", 'tx')
|
||||
call assert_equal('"Foo b\x', @:)
|
||||
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
|
||||
|
||||
func Test_complete_user_cmd()
|
||||
|
Loading…
Reference in New Issue
Block a user