Trigger InsertCompletionHide hook when switching to explicit completion

Previously we would just bypass that hook making it impossible to
act on the inserted text when triggering an explicit completion after
inserting text from the previous completer.
This commit is contained in:
Maxime Coste 2020-08-30 10:35:15 +10:00
parent f56c1107e0
commit 1fd1a0052d

View File

@ -564,7 +564,7 @@ bool InsertCompleter::try_complete(Func complete_func)
auto& sels = m_context.selections();
try
{
m_inserted_ranges.clear();
reset();
m_completions = complete_func(sels, m_options, m_faces);
}
catch (runtime_error& e)