From 6877ae151f3d18434c0df2110aa75df873fad1fe Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 12 Nov 2013 18:52:30 +0000 Subject: [PATCH] Do not require call to menu_hide before menu_show in ncurses ui --- src/ncurses.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ncurses.cc b/src/ncurses.cc index fc1560a5..bf43596d 100644 --- a/src/ncurses.cc +++ b/src/ncurses.cc @@ -443,8 +443,9 @@ void NCursesUI::menu_show(memoryview items, DisplayCoord anchor, ColorPair fg, ColorPair bg, MenuStyle style) { - kak_assert(m_menu_win == nullptr); - kak_assert(m_items.empty()); + if (m_menu_win) + delwin(m_menu_win); + m_items.clear(); m_menu_fg = fg; m_menu_bg = bg;