fix(ui2): don't adjust dialog pos for pum wildmenu (#37695)

Problem:  Dialog position unnecessarily adjusted for pum wildmenu.
Solution: Apply no offset if the pum is visible.
This commit is contained in:
Sean Dewar
2026-02-04 12:15:34 +00:00
committed by GitHub
parent ddd1bf757f
commit 9655bd560f
2 changed files with 22 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ describe('cmdline2', function()
]])
end)
it('dialog position is adjusted for toggled wildmenu', function()
it('dialog position is adjusted for toggled non-pum wildmenu', function()
exec([[
set wildmode=list:full,full wildoptions-=pum
func Foo()
@@ -218,6 +218,25 @@ describe('cmdline2', function()
|
{16::}{15:call} {25:Foo}{16:()()}^ |
]])
exec('set wildoptions+=pum laststatus=2')
feed('<C-U>call Fo<C-Z><C-Z>')
screen:expect([[
|
{1:~ }|*9
{3: }|
Foo(){12: Foo() } |
{4: Fooo() } |
{16::}{15:call} {25:Foo}{16:()}^ |
]])
feed('()')
screen:expect([[
|
{1:~ }|*9
{3: }|
Foo() Fooo() |
|
{16::}{15:call} {25:Foo}{16:()()}^ |
]])
end)
end)