From 517abf5e74636052007db0938067aee7bf658965 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 9 Mar 2016 23:28:23 +0000 Subject: [PATCH] Redisplay info when menu appears so that info adapts its position --- src/ncurses_ui.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 72c349c0..308527f4 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -672,6 +672,10 @@ void NCursesUI::menu_show(ConstArrayView items, auto width = is_prompt ? maxsize.column : min(longest+1, maxsize.column); m_menu.create({line, anchor.column}, {height, width}); draw_menu(); + + if (m_info) + info_show(m_info.title, m_info.content, + m_info.anchor, m_info.face, m_info.style); } void NCursesUI::menu_select(int selected)