NCursesUI: fix redraw when showing a new menu

This commit is contained in:
Maxime Coste 2013-11-19 19:49:05 +00:00
parent 9a6712e56b
commit 44b0957e10

View File

@ -444,7 +444,11 @@ void NCursesUI::menu_show(memoryview<String> items,
MenuStyle style)
{
if (m_menu_win)
{
wredrawln(stdscr, (int)window_pos(m_menu_win).line,
(int)window_size(m_menu_win).line);
delwin(m_menu_win);
}
m_items.clear();
m_menu_fg = fg;