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

@ -641,6 +641,7 @@ static int command_line_execute(VimState *state, int key)
save_p_ls = -1;
} else {
win_redraw_last_status(topframe);
wild_menu_showing = 0; // must be before redraw_statuslines #8385
redraw_statuslines();
}
KeyTyped = skt;

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>')