summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-11-12 20:36:42 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-11-12 20:36:42 +0000
commitdb5050fab0718d9f446a9af3f4507e30b29bbc83 (patch)
treecf7f782c5670b87e73b484fa65795a4af437b1bc /src/buffer.hh
parentbc3c21f4368abba2dd51d139e517112e96cb876f (diff)
Add BufSetOption hook support
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh5
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;