From de1516a8d822f72bddfb158126b6e609afc63c64 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Jul 2025 11:52:44 +1000 Subject: Replace on_scope_end with CTAD with OnScopeEnd directly --- 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 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(); -- cgit v1.2.3