diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 12:58:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-01 12:58:52 +0100 |
commit | d3de178e5352fedf0f30b979f46a2fcbca24ea40 (patch) | |
tree | a9bf6b52c8a69cd45d2e16c16265a89e7f5b1bf8 /src/testdir | |
parent | d83392a43a48c566c0f3b76382a3648584dae32b (diff) |
patch 9.0.0346: :horizontal modifier not fully supportedv9.0.0346
Problem: :horizontal modifier not fully supported.
Solution: Also use :horizontal for completion and user commands.
(closes #11025)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_cmdline.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_usercommands.vim | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 95db663bdf..bec0f5fdf8 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -1078,6 +1078,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", @:) diff --git a/src/testdir/test_usercommands.vim b/src/testdir/test_usercommands.vim index 9c75a91972..91d8bfd062 100644 --- a/src/testdir/test_usercommands.vim +++ b/src/testdir/test_usercommands.vim @@ -103,6 +103,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 |