From 7bb7c1b9226db15c1816350d9d3741f26768e458 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 11 Nov 2014 23:31:06 +0000 Subject: [PATCH] Hide info box when closing insert completion menu --- src/insert_completer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 2a683310..d84e9580 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -281,7 +281,7 @@ void InsertCompleter::select(int offset) if (not candidate.second.empty()) m_context.ui().info_show(candidate.first, candidate.second, CharCoord{}, get_face("Information"), InfoStyle::MenuDoc); - } + } // when we select a match, remove non displayed matches from the candidates // which are considered as invalid with the new completion timestamp m_completions.candidates.clear(); @@ -334,7 +334,10 @@ void InsertCompleter::reset() { m_completions = InsertCompletion{}; if (m_context.has_ui()) + { m_context.ui().menu_hide(); + m_context.ui().info_hide(); + } } bool InsertCompleter::setup_ifn()