From d22c989984348dc407fcebff565267f15384b0d9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 21 Jan 2018 10:34:09 +1100 Subject: Rename InputModeChange hook to ModeChange InputModeChange is a bit long to type and its pretty clear in Kakoune that "Mode" means "Input mode", so use a shorter and as clear name. --- src/input_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index 93496a6c..f8211a2e 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1418,7 +1418,7 @@ void InputHandler::push_mode(InputMode* new_mode) m_mode_stack.emplace_back(new_mode); new_mode->on_enabled(); - context().hooks().run_hook("InputModeChange", format("{}:{}", prev_name, new_mode->name()), context()); + context().hooks().run_hook("ModeChange", format("{}:{}", prev_name, new_mode->name()), context()); } void InputHandler::pop_mode(InputMode* mode) @@ -1432,7 +1432,7 @@ void InputHandler::pop_mode(InputMode* mode) m_mode_stack.pop_back(); current_mode().on_enabled(); - context().hooks().run_hook("InputModeChange", format("{}:{}", prev_name, current_mode().name()), context()); + context().hooks().run_hook("ModeChange", format("{}:{}", prev_name, current_mode().name()), context()); } void InputHandler::reset_normal_mode() @@ -1446,7 +1446,7 @@ void InputHandler::reset_normal_mode() m_mode_stack.resize(1); current_mode().on_enabled(); - context().hooks().run_hook("InputModeChange", format("{}:{}", prev_name, current_mode().name()), context()); + context().hooks().run_hook("ModeChange", format("{}:{}", prev_name, current_mode().name()), context()); } void InputHandler::insert(InsertMode mode, int count) -- cgit v1.2.3