summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-06-07 13:29:44 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-06-07 13:29:44 +0000
commit9bcfda3226413345f3862541fb498bb5d4c62156 (patch)
tree22b9ca401ebdd2d51354992d35f218f8030f4c03 /src/window.cc
parent6a416abae2c93ed5699164bea23da4a52e1bcafc (diff)
HookManager are now hierarchical from window to buffer to global
window hooks also executes buffer hook which also execute global hooks
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cc b/src/window.cc
index 310d58c8..ee7b0a75 100644
--- a/src/window.cc
+++ b/src/window.cc
@@ -15,12 +15,12 @@ Window::Window(Buffer& buffer)
: Editor(buffer),
m_position(0, 0),
m_dimensions(0, 0),
+ m_hook_manager(buffer.hook_manager()),
m_option_manager(buffer.option_manager())
{
HighlighterRegistry& registry = HighlighterRegistry::instance();
- GlobalHookManager::instance().run_hook("WinCreate", buffer.name(),
- Context(*this));
+ m_hook_manager.run_hook("WinCreate", buffer.name(), Context(*this));
registry.add_highlighter_to_window(*this, "expand_tabs", HighlighterParameters());
registry.add_highlighter_to_window(*this, "highlight_selections", HighlighterParameters());