mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ex_getln.c: fix <S-Tab> not triggering pum when wildoptions=pum (#10042)
Some of the logic that was present for <Tab> was missing from <S-Tab>. Closes https://github.com/neovim/neovim/issues/10042.
This commit is contained in:
@@ -574,6 +574,22 @@ describe('ui/ext_popupmenu', function()
|
||||
]])
|
||||
feed('<esc>')
|
||||
|
||||
-- #10042: make sure shift-tab also triggers the pum
|
||||
feed(':sign <S-tab>')
|
||||
screen:expect{grid=[[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
:sign unplace^ |
|
||||
]], popupmenu={items=wild_expected, pos=5, anchor={1, 9, 6}}}
|
||||
feed('<esc>')
|
||||
|
||||
-- check positioning with multibyte char in pattern
|
||||
command("e långfile1")
|
||||
command("sp långfile2")
|
||||
@@ -594,6 +610,7 @@ describe('ui/ext_popupmenu', function()
|
||||
items = {{"långfile1", "", "", "" }, {"långfile2", "", "", ""}},
|
||||
pos = 0,
|
||||
}}
|
||||
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user