summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-08-30 10:35:15 +1000
committerMaxime Coste <mawww@kakoune.org>2020-08-30 10:35:15 +1000
commit1fd1a0052d259a36224517e26d13a5616ee89aaa (patch)
tree47dab91f54239b0570b865ae9d4150a9e4700362 /src/insert_completer.cc
parentf56c1107e00f8e3e82939dbee0fcd5cb7e3ab3c8 (diff)
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.
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc2
1 files changed, 1 insertions, 1 deletions
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)