From dd2896ecc89858d026301d360578a54b4fc4b841 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 26 Nov 2011 18:39:59 +0000 Subject: [PATCH] Window: call WinCreate hook on creation --- src/window.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index f2d29351..278b6a60 100644 --- a/src/window.cc +++ b/src/window.cc @@ -2,6 +2,7 @@ #include "assert.hh" #include "filter_registry.hh" +#include "hooks_manager.hh" #include #include @@ -54,9 +55,12 @@ Window::Window(Buffer& buffer) m_selections.push_back(Selection(buffer.begin(), buffer.begin())); FilterRegistry& registry = FilterRegistry::instance(); + + HooksManager::instance().run_hook("WinCreate", buffer.name(), + Context(*this)); + registry.add_filter_to_window(*this, "expand_tabs", FilterParameters()); registry.add_filter_to_window(*this, "highlight_selections", FilterParameters()); - registry.add_filter_to_window(*this, "hlcpp", FilterParameters()); } void Window::check_invariant() const