diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 27984b7d4..f91d20c27 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -630,6 +630,7 @@ void NCursesUI::menu_show(ConstArrayView items, return; const int item_count = items.size(); + m_items.clear(); // make sure it is empty m_items.reserve(item_count); CharCount longest = 0; const CharCount maxlen = min((int)maxsize.column-2, 200);