summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2019-03-16 01:38:32 -0700
committerJustin Frank <justinpfrank@protonmail.com>2019-04-08 17:06:56 -0700
commitc40bb6fc009bd0933290b61717605c0d5bf68aee (patch)
tree6dc9e8d9fd00f94b8ffbf4673a88db5daab3e01c /src/command_manager.cc
parent93ced79f37fab2cc6843d9c8f097f577b69aad9a (diff)
Evaluate modules in an empty context
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc
index aff9e3fd..1fdfa34d 100644
--- a/src/command_manager.cc
+++ b/src/command_manager.cc
@@ -63,7 +63,8 @@ void CommandManager::load_module(StringView module_name, Context& context)
return;
module->value.loaded = true;
- execute(module->value.commands, context);
+ Context empty_context{Context::EmptyContextFlag{}};
+ execute(module->value.commands, empty_context);
module->value.commands.clear();
context.hooks().run_hook(Hook::ModuleLoad, module_name, context);