diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-22 08:42:02 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-22 09:08:47 +0800 |
commit | 06a53ab2cb13e1cc7d0deb3c8846881056aefbbf (patch) | |
tree | 2a90cdcd5e45827132af3a7cdbe6173e8a95eafe /src | |
parent | 99bd89595675268498f782f4b81485bf6a88d4e8 (diff) | |
download | rneovim-06a53ab2cb13e1cc7d0deb3c8846881056aefbbf.tar.gz rneovim-06a53ab2cb13e1cc7d0deb3c8846881056aefbbf.tar.bz2 rneovim-06a53ab2cb13e1cc7d0deb3c8846881056aefbbf.zip |
vim-patch:8.2.4334: command line popup menu not positioned correctly
Problem: Command line popup menu not positioned correctly.
Solution: Also use vim_strsize() on the existing text. (Naruhiko Nishino,
closes vim/vim#9727)
https://github.com/vim/vim/commit/68cc2b8a37197872e737fb61244069e13b7227a2
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index b22607635e..35886d42c5 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -2033,6 +2033,17 @@ func Test_wildmenu_pum() 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') |