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:
parent
f56c1107e0
commit
1fd1a0052d
|
@ -564,7 +564,7 @@ bool InsertCompleter::try_complete(Func complete_func)
|
||||||
auto& sels = m_context.selections();
|
auto& sels = m_context.selections();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_inserted_ranges.clear();
|
reset();
|
||||||
m_completions = complete_func(sels, m_options, m_faces);
|
m_completions = complete_func(sels, m_options, m_faces);
|
||||||
}
|
}
|
||||||
catch (runtime_error& e)
|
catch (runtime_error& e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user