Do not require call to menu_hide before menu_show in ncurses ui
This commit is contained in:
parent
83a6375263
commit
6877ae151f
|
@ -443,8 +443,9 @@ void NCursesUI::menu_show(memoryview<String> items,
|
||||||
DisplayCoord anchor, ColorPair fg, ColorPair bg,
|
DisplayCoord anchor, ColorPair fg, ColorPair bg,
|
||||||
MenuStyle style)
|
MenuStyle style)
|
||||||
{
|
{
|
||||||
kak_assert(m_menu_win == nullptr);
|
if (m_menu_win)
|
||||||
kak_assert(m_items.empty());
|
delwin(m_menu_win);
|
||||||
|
m_items.clear();
|
||||||
|
|
||||||
m_menu_fg = fg;
|
m_menu_fg = fg;
|
||||||
m_menu_bg = bg;
|
m_menu_bg = bg;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user