From 9bcfda3226413345f3862541fb498bb5d4c62156 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 7 Jun 2012 13:29:44 +0000 Subject: HookManager are now hierarchical from window to buffer to global window hooks also executes buffer hook which also execute global hooks --- src/buffer.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buffer.hh') diff --git a/src/buffer.hh b/src/buffer.hh index 950b53b8..cd86737f 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -7,6 +7,7 @@ #include "line_and_column.hh" #include "option_manager.hh" +#include "hook_manager.hh" #include "string.hh" namespace Kakoune @@ -168,6 +169,7 @@ public: const String& line_content(size_t l) const { return m_lines[l].content; } OptionManager& option_manager() { return m_option_manager; } + HookManager& hook_manager() { return m_hook_manager; } private: friend class BufferIterator; @@ -208,6 +210,7 @@ private: std::vector m_iterators_to_update; OptionManager m_option_manager; + HookManager m_hook_manager; }; inline Modification Modification::make_erase(BufferIterator begin, -- cgit v1.2.3