diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-07-08 11:52:44 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-07-08 12:07:33 +1000 |
| commit | de1516a8d822f72bddfb158126b6e609afc63c64 (patch) | |
| tree | 9765b18349657a766b92046cd23976ad26815acf /src/input_handler.cc | |
| parent | ce1d512a0c1922ab5f43f28e7bae573508c98601 (diff) | |
Replace on_scope_end with CTAD with OnScopeEnd directly
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 0c501edb..edaf75f9 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -288,7 +288,7 @@ public: ScopedSetBool set_in_on_key{m_in_on_key}; bool do_restore_hooks = false; - auto restore_hooks = on_scope_end([&, this]{ + auto restore_hooks = OnScopeEnd([&, this]{ if (m_hooks_disabled and enabled() and do_restore_hooks) { context().hooks_disabled().unset(); @@ -340,7 +340,7 @@ public: } else { - auto pop_if_single_command = on_scope_end([this] { + auto pop_if_single_command = OnScopeEnd([this] { if (m_state == State::SingleCommand and enabled()) pop_mode(); else if (m_state == State::SingleCommand) @@ -1682,7 +1682,7 @@ void InputHandler::handle_key(Key key, bool synthesized) return; ++m_handle_key_level; - auto dec = on_scope_end([this]{ --m_handle_key_level;} ); + auto dec = OnScopeEnd([this]{ --m_handle_key_level;} ); if (not synthesized) current_mode().on_raw_key(); |
