inccommand: pause :terminal redraws (#8307)

fix #5584
This commit is contained in:
Justin M. Keyes
2018-04-22 12:26:16 +02:00
committed by GitHub
parent 51af911a27
commit d05712fbe7
3 changed files with 75 additions and 22 deletions

View File

@@ -1106,6 +1106,7 @@ static void refresh_timer_cb(TimeWatcher *watcher, void *data)
{
refresh_pending = false;
if (exiting // Cannot redraw (requires event loop) during teardown/exit.
|| (State & CMDPREVIEW)
// WM_LIST (^D) is not redrawn, unlike the normal wildmenu. So we must
// skip redraws to keep it visible.
|| wild_menu_showing == WM_LIST) {