diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-05-13 13:55:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-13 13:55:09 +0100 |
commit | 81f277f52664031a56aeabe889f1c36402316dba (patch) | |
tree | 94c78053f6755ccde0c9443954fecaf2bb1bfebf /src/testdir | |
parent | b848ce6b7e27f24aff47a4d63933e0f96663acfe (diff) |
patch 9.0.1550: in cmdline window S-Tab does not select previous completionv9.0.1550
Problem: In cmdline window S-Tab does not select previous completion.
(Maxim Kim)
Solution: Add a mappint for S-Tab. (closes #12116)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_cmdwin.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_cmdwin.vim b/src/testdir/test_cmdwin.vim index ad05f3e044..e0b5833caf 100644 --- a/src/testdir/test_cmdwin.vim +++ b/src/testdir/test_cmdwin.vim @@ -359,6 +359,22 @@ func Test_compl_in_cmdwin() set wildmenu& wildchar& endfunc +func Test_cmdwin_cmd_completion() + set wildmenu wildchar=<Tab> + com! -nargs=* -complete=command SomeOne echo 'one' + com! -nargs=* -complete=command SomeTwo echo 'two' + call feedkeys("q:aSome\<Tab>\<Home>\"\<CR>", 'tx') + call assert_equal('"SomeOne', @:) + call feedkeys("q:aSome\<Tab>\<Tab>\<Home>\"\<CR>", 'tx') + call assert_equal('"SomeTwo', @:) + call feedkeys("q:aSome\<Tab>\<Tab>\<S-Tab>\<Home>\"\<CR>", 'tx') + call assert_equal('"SomeOne', @:) + + delcom SomeOne + delcom SomeTwo + set wildmenu& wildchar& +endfunc + func Test_cmdwin_ctrl_bsl() " Using CTRL-\ CTRL-N in cmd window should close the window call feedkeys("q:\<C-\>\<C-N>", 'xt') |