diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-01-21 10:34:09 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-01-21 10:34:09 +1100 |
| commit | d22c989984348dc407fcebff565267f15384b0d9 (patch) | |
| tree | 8469ce7c0cd25ec0cf5cbec0e4184639896d24d9 /src/input_handler.cc | |
| parent | 07dfcd336d31987ea30c6345a0674cd5c16ed21a (diff) | |
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.
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
