From 1fd1a0052d259a36224517e26d13a5616ee89aaa Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 30 Aug 2020 10:35:15 +1000 Subject: [PATCH] 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. --- src/insert_completer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insert_completer.cc b/src/insert_completer.cc index a93634f7..94c1a95e 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -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)