mirror of
https://github.com/neovim/neovim.git
synced 2026-08-04 06:38:44 +00:00
vim-patch:9.0.0346: :horizontal modifier not fully supported
Problem: :horizontal modifier not fully supported.
Solution: Also use :horizontal for completion and user commands.
(closes vim/vim#11025)
d3de178e53
This commit is contained in:
@@ -926,6 +926,10 @@ func Test_cmdline_complete_various()
|
||||
call feedkeys(":all abc\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||
call assert_equal("\"all abc\<C-A>", @:)
|
||||
|
||||
" completion for :wincmd with :horizontal modifier
|
||||
call feedkeys(":horizontal wincm\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||
call assert_equal("\"horizontal wincmd", @:)
|
||||
|
||||
" completion for a command with a command modifier
|
||||
call feedkeys(":topleft new\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||
call assert_equal("\"topleft new", @:)
|
||||
|
||||
@@ -101,6 +101,10 @@ function Test_cmdmods()
|
||||
call assert_equal('vertical', g:mods)
|
||||
vert MyCmd
|
||||
call assert_equal('vertical', g:mods)
|
||||
horizontal MyCmd
|
||||
call assert_equal('horizontal', g:mods)
|
||||
hor MyCmd
|
||||
call assert_equal('horizontal', g:mods)
|
||||
|
||||
aboveleft belowright botright browse confirm hide keepalt keepjumps
|
||||
\ keepmarks keeppatterns lockmarks noautocmd noswapfile silent
|
||||
|
||||
Reference in New Issue
Block a user