diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.cc b/src/commands.cc index 74f71820..488c892f 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -458,6 +458,8 @@ void add_hook(const CommandParameters& params, const Context& context) if (params[0] == "global") GlobalHookManager::instance().add_hook(params[1], hook_func); + else if (params[0] == "buffer") + context.buffer().hook_manager().add_hook(params[1], hook_func); else if (params[0] == "window") context.window().hook_manager().add_hook(params[1], hook_func); else |
