diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-04-04 08:36:21 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-04-04 08:36:21 +0100 |
| commit | 94145f2a898db5af4b4e6a65f06f5e9d82094d8f (patch) | |
| tree | e0da577944a3fd8d17f82970dca41dae6c7fef86 /src | |
| parent | 6ad2f721dd0a464d1f60debe3d0581acd7d525bc (diff) | |
ncurses: When hiding the menu, recompute the info position
Diffstat (limited to 'src')
| -rw-r--r-- | src/ncurses_ui.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
