mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 00:42:13 +03:00
parent
2d7e99da98
commit
e5240ba4ff
@ -630,6 +630,7 @@ void NCursesUI::menu_show(ConstArrayView<DisplayLine> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user