summaryrefslogtreecommitdiff
path: root/src/client_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-10-23 08:15:53 +1100
committerMaxime Coste <mawww@kakoune.org>2018-10-23 08:15:53 +1100
commitdfc11d1c43b898394df8fda52a8079b34058de27 (patch)
tree8d1923461be03b1d0eab5706740d22986a86997d /src/client_manager.cc
parente399bf7562475c92f4f9e983d2261c12903072d4 (diff)
Refactor Hook management to have a well defined list of hooks
Hooks are now an enum class instead of passing strings around.
Diffstat (limited to 'src/client_manager.cc')
-rw-r--r--src/client_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client_manager.cc b/src/client_manager.cc
index 612d1753..18aa175f 100644
--- a/src/client_manager.cc
+++ b/src/client_manager.cc
@@ -67,7 +67,7 @@ Client* ClientManager::create_client(std::unique_ptr<UserInterface>&& ui, int pi
{
client->context().print_status({ fix_atom_text(error.what().str()),
client->context().faces()["Error"] });
- client->context().hooks().run_hook("RuntimeError", error.what(),
+ client->context().hooks().run_hook(Hook::RuntimeError, error.what(),
client->context());
}