parent
2d7e99da98
commit
e5240ba4ff
|
@ -630,6 +630,7 @@ void NCursesUI::menu_show(ConstArrayView<DisplayLine> items,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const int item_count = items.size();
|
const int item_count = items.size();
|
||||||
|
m_items.clear(); // make sure it is empty
|
||||||
m_items.reserve(item_count);
|
m_items.reserve(item_count);
|
||||||
CharCount longest = 0;
|
CharCount longest = 0;
|
||||||
const CharCount maxlen = min((int)maxsize.column-2, 200);
|
const CharCount maxlen = min((int)maxsize.column-2, 200);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user