wildmenu: close before redrawing statusline (#8453)

Fixes #8385
This commit is contained in:
Alexander Karle
2018-06-01 18:22:53 -04:00
committed by Justin M. Keyes
parent 49a497a67c
commit 39a03c0fe7
2 changed files with 24 additions and 0 deletions

View File

@@ -31,6 +31,29 @@ describe("'wildmenu'", function()
]])
end)
it(':sign <tab> <space> hides wildmenu #8453', function()
command('set wildmode=full')
-- only a regression if status-line open
command('set laststatus=2')
command('set wildmenu')
feed(':sign <tab>')
screen:expect([[
|
~ |
~ |
define jump list > |
:sign define^ |
]])
feed('<space>')
screen:expect([[
|
~ |
~ |
[No Name] |
:sign define ^ |
]])
end)
it('does not crash after cycling back to original text', function()
command('set wildmode=full')
feed(':j<Tab><Tab><Tab>')