Hide info box when closing insert completion menu

This commit is contained in:
Maxime Coste 2014-11-11 23:31:06 +00:00
parent 6c47b204e2
commit 7bb7c1b922

View File

@ -281,7 +281,7 @@ void InsertCompleter::select(int offset)
if (not candidate.second.empty()) if (not candidate.second.empty())
m_context.ui().info_show(candidate.first, candidate.second, CharCoord{}, m_context.ui().info_show(candidate.first, candidate.second, CharCoord{},
get_face("Information"), InfoStyle::MenuDoc); get_face("Information"), InfoStyle::MenuDoc);
} }
// when we select a match, remove non displayed matches from the candidates // when we select a match, remove non displayed matches from the candidates
// which are considered as invalid with the new completion timestamp // which are considered as invalid with the new completion timestamp
m_completions.candidates.clear(); m_completions.candidates.clear();
@ -334,7 +334,10 @@ void InsertCompleter::reset()
{ {
m_completions = InsertCompletion{}; m_completions = InsertCompletion{};
if (m_context.has_ui()) if (m_context.has_ui())
{
m_context.ui().menu_hide(); m_context.ui().menu_hide();
m_context.ui().info_hide();
}
} }
bool InsertCompleter::setup_ifn() bool InsertCompleter::setup_ifn()