diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-11-12 20:36:42 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-11-12 20:36:42 +0000 |
| commit | db5050fab0718d9f446a9af3f4507e30b29bbc83 (patch) | |
| tree | cf7f782c5670b87e73b484fa65795a4af437b1bc /src/buffer.hh | |
| parent | bc3c21f4368abba2dd51d139e517112e96cb876f (diff) | |
Add BufSetOption hook support
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 8727d217..5d4abda4 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -81,7 +81,7 @@ public: // The Buffer class permits to read and mutate this file // representation. It also manage modifications undo/redo and // provides tools to deal with the line/column nature of text. -class Buffer : public SafeCountable +class Buffer : public SafeCountable, public OptionManagerWatcher { public: enum class Flags @@ -170,6 +170,9 @@ public: void check_invariant() const; private: + + void on_option_changed(const Option& option) override; + struct Line { ByteCount start; |
