From 94145f2a898db5af4b4e6a65f06f5e9d82094d8f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 4 Apr 2017 08:36:21 +0100 Subject: [PATCH] ncurses: When hiding the menu, recompute the info position --- src/ncurses_ui.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index e33abd79..991cb79b 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -769,6 +769,10 @@ void NCursesUI::menu_hide() mark_dirty(m_menu); m_menu.destroy(); m_dirty = true; + + // Recompute info as it does not have to avoid the menu anymore + if (m_info) + info_show(m_info.title, m_info.content, m_info.anchor, m_info.face, m_info.style); } static DisplayCoord compute_needed_size(StringView str)