From abe37b5fdb914abf71115fccfe8a30131dd1c725 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 20 Mar 2013 19:07:06 +0100 Subject: [PATCH] Add a RuntimeError hook called when a runtime_error exception is catched at client level --- src/client_manager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client_manager.cc b/src/client_manager.cc index a864ef93..d220a69d 100644 --- a/src/client_manager.cc +++ b/src/client_manager.cc @@ -64,6 +64,7 @@ void ClientManager::create_client(std::unique_ptr&& ui, catch (Kakoune::runtime_error& error) { context->print_status(error.description()); + context->hooks().run_hook("RuntimeError", error.description(), *context); } catch (Kakoune::client_removed&) { @@ -80,6 +81,7 @@ void ClientManager::create_client(std::unique_ptr&& ui, catch (Kakoune::runtime_error& error) { context->print_status(error.description()); + context->hooks().run_hook("RuntimeError", error.description(), *context); } catch (Kakoune::client_removed&) {