diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-22 09:27:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 09:27:55 +0800 |
commit | 72b03792b6428ca96ca779b53061c6c98f6f930f (patch) | |
tree | 2a90cdcd5e45827132af3a7cdbe6173e8a95eafe /src | |
parent | c086bf60794811ef33480e87000630e2d498b1bd (diff) | |
parent | 06a53ab2cb13e1cc7d0deb3c8846881056aefbbf (diff) | |
download | rneovim-72b03792b6428ca96ca779b53061c6c98f6f930f.tar.gz rneovim-72b03792b6428ca96ca779b53061c6c98f6f930f.tar.bz2 rneovim-72b03792b6428ca96ca779b53061c6c98f6f930f.zip |
Merge pull request #19885 from zeertzjq/vim-8.2.4328
vim-patch:8.2.{4328,4334}: wildmenu tests
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 3f53ed04b6..35886d42c5 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -2024,6 +2024,26 @@ func Test_wildmenu_pum() call TermWait(buf) call VerifyScreenDump(buf, 'Test_wildmenu_pum_29', {}) + " Check "list" still works + call term_sendkeys(buf, "\<C-U>set wildmode=longest,list\<CR>") + call term_sendkeys(buf, ":cn\<Tab>") + call TermWait(buf) + call VerifyScreenDump(buf, 'Test_wildmenu_pum_30', {}) + call term_sendkeys(buf, "s") + call TermWait(buf) + call VerifyScreenDump(buf, 'Test_wildmenu_pum_31', {}) + + " Tests a directory name contained full-width characters. + call mkdir('Xdir/あいう', 'p') + call writefile([], 'Xdir/あいう/abc') + call writefile([], 'Xdir/あいう/xyz') + call writefile([], 'Xdir/あいう/123') + + call term_sendkeys(buf, "\<C-U>set wildmode&\<CR>") + call term_sendkeys(buf, ":\<C-U>e Xdir/あいう/\<Tab>") + call TermWait(buf) + call VerifyScreenDump(buf, 'Test_wildmenu_pum_32', {}) + call term_sendkeys(buf, "\<C-U>\<CR>") call StopVimInTerminal(buf) call delete('Xtest') |