summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-02-14 21:31:29 +1100
committerMaxime Coste <mawww@kakoune.org>2023-02-14 21:31:29 +1100
commit458e3ef20ac3f8b815f1087675b9bf820ea8c3f5 (patch)
tree10e5fc855d426b4b841ed834f8a9ceeabb92ec09 /src/command_manager.hh
parent85ceef29bdc3e9fe8cd42770f9191ad48726bda5 (diff)
Immediately execute ModuleLoaded hooks for already loaded modules
This is trickier than expected because ModuleLoaded hooks can (as any other hooks) use arbitrary regular expressions for their filter. Fixes #4841
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index d41c1dcf..503e1977 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -123,6 +123,7 @@ public:
void register_module(String module_name, String commands);
void load_module(StringView module_name, Context& context);
+ HashSet<String> loaded_modules() const;
Completions complete_module_name(StringView query) const;