From e5240ba4ff7a97076993d178f10ecf9f839f0798 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 13 Oct 2015 13:40:04 +0100 Subject: [PATCH] Fix NCursesUI::m_items not being empty after a resize Fixes #435 --- src/ncurses_ui.cc | 1 + 1 file changed, 1 insertion(+) 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);