summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-04-15 17:58:37 +0200
committerMaxime Coste <mawww@kakoune.org>2019-04-17 08:38:52 +0200
commit78419bc76f833b493b700bf3262c52fd93544744 (patch)
treed93890a202bec2dba632cda995a3c10b054bb0d8 /src/insert_completer.cc
parent9118a18d5d72ac1814faf9dcba0635560800eb5f (diff)
Remove InsertCompletionSelect hook
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc
index 3e44d325..5c1e9468 100644
--- a/src/insert_completer.cc
+++ b/src/insert_completer.cc
@@ -447,12 +447,6 @@ void InsertCompleter::select(int index, bool relative, Vector<Key>& keystrokes)
for (auto& c : candidate.completion)
keystrokes.emplace_back(c);
- if (m_context.has_client())
- {
- const auto param = (m_current_candidate == m_completions.candidates.size() - 1) ?
- StringView{} : candidate.completion;
- m_context.hooks().run_hook(Hook::InsertCompletionSelect, param, m_context);
- }
if (not candidate.on_select.empty())
CommandManager::instance().execute(candidate.on_select, m_context);
}