diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-06-07 13:29:44 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-06-07 13:29:44 +0000 |
| commit | 9bcfda3226413345f3862541fb498bb5d4c62156 (patch) | |
| tree | 22b9ca401ebdd2d51354992d35f218f8030f4c03 /src/buffer.hh | |
| parent | 6a416abae2c93ed5699164bea23da4a52e1bcafc (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/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 3 |
1 files changed, 3 insertions, 0 deletions
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<BufferIterator*> m_iterators_to_update; OptionManager m_option_manager; + HookManager m_hook_manager; }; inline Modification Modification::make_erase(BufferIterator begin, |
