From 6bd71c68e5548334e655a8c391843314a25f7894 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 17 Nov 2015 23:34:03 +0000 Subject: [PATCH] NCurses: Fix max menu item width computation --- src/ncurses_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 2ba5abd2..d8e4ffa4 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -645,7 +645,7 @@ void NCursesUI::menu_show(ConstArrayView items, 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); + const CharCount maxlen = min((int)maxsize.column-1, 200); for (auto& item : items) { m_items.push_back(item);