summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-04-03 13:39:20 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-04-03 13:39:20 +0000
commitf3dd65fbf193ef4e53a58919cb14264b376cd1b0 (patch)
tree82abc79eced732f55f82c6aa2c130afe20632a46 /src/buffer.cc
parentc8447658c0997aeddbe2b6e77283492830869b02 (diff)
add an OptionManager class and use it to manage tabstops
OptionManager map names to options, and may delegate option resolution to it's parent if it does not contains the asked for option. That way Buffers can override global options, and Windows can override Buffer options.
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 13aa5b00..060f55c4 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -26,7 +26,8 @@ Buffer::Buffer(const std::string& name, Type type,
const String& initial_content)
: m_name(name), m_type(type),
m_history(1), m_history_cursor(m_history.begin()),
- m_last_save_undo_index(0)
+ m_last_save_undo_index(0),
+ m_option_manager(GlobalOptionManager::instance())
{
BufferManager::instance().register_buffer(this);
if (not initial_content.empty())