From c8fdbc2a60dce38861a3145ee00938562ea0955c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 14 Jun 2012 20:51:01 +0000 Subject: [PATCH] support buffer as a hook target --- src/commands.cc | 2 ++ 1 file changed, 2 insertions(+) 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