Hide info box when selecting empty insert completion

This commit is contained in:
Maxime Coste 2016-02-17 23:03:22 +00:00
parent 5de6963f74
commit c9f01e2168

View File

@ -370,6 +370,8 @@ void InsertCompleter::select(int offset, Vector<Key>& keystrokes)
if (not candidate.docstring.empty())
m_context.ui().info_show(candidate.completion, candidate.docstring, CharCoord{},
get_face("Information"), InfoStyle::MenuDoc);
else
m_context.ui().info_hide();
}
for (auto i = 0_byte; i < prefix_len; ++i)