mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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)
68cc2b8a37
This commit is contained in:
parent
99bd895956
commit
06a53ab2cb
@ -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')
|
||||
|
0
test/functional/fixtures/wildpum/あいう/123
Normal file
0
test/functional/fixtures/wildpum/あいう/123
Normal file
0
test/functional/fixtures/wildpum/あいう/abc
Normal file
0
test/functional/fixtures/wildpum/あいう/abc
Normal file
0
test/functional/fixtures/wildpum/あいう/xyz
Normal file
0
test/functional/fixtures/wildpum/あいう/xyz
Normal file
@ -2192,6 +2192,23 @@ describe('builtin popupmenu', function()
|
||||
feed('<esc>')
|
||||
command('set wildmode=full')
|
||||
|
||||
-- Tests a directory name contained full-width characters.
|
||||
feed(':e あいう/<Tab>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }{s: 123 }{1: }|
|
||||
{1:~ }{n: abc }{1: }|
|
||||
{1:~ }{n: xyz }{1: }|
|
||||
:e あいう/123^ |
|
||||
]])
|
||||
|
||||
feed('<esc>')
|
||||
|
||||
-- check positioning with multibyte char in pattern
|
||||
command("e långfile1")
|
||||
command("sp långfile2")
|
||||
|
Loading…
Reference in New Issue
Block a user