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/command_manager.cc | |
| parent | ce1d512a0c1922ab5f43f28e7bae573508c98601 (diff) | |
Replace on_scope_end with CTAD with OnScopeEnd directly
Diffstat (limited to 'src/command_manager.cc')
| -rw-r--r-- | src/command_manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc index 0db97e94..28c9f075 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -82,7 +82,7 @@ void CommandManager::load_module(StringView module_name, Context& context) { module->value.state = Module::State::Loading; - auto restore_state = on_scope_end([&] { module->value.state = Module::State::Registered; }); + auto restore_state = OnScopeEnd([&] { module->value.state = Module::State::Registered; }); Context empty_context{Context::EmptyContextFlag{}}; execute(module->value.commands, empty_context); @@ -526,7 +526,7 @@ void CommandManager::execute_single_command(CommandParameters params, throw runtime_error("maximum nested command depth hit"); ++m_command_depth; - auto pop_depth = on_scope_end([this] { --m_command_depth; }); + auto pop_depth = OnScopeEnd([this] { --m_command_depth; }); auto command_it = m_commands.find(resolve_alias(context, params[0])); if (command_it == m_commands.end()) |
