From f3dd65fbf193ef4e53a58919cb14264b376cd1b0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 3 Apr 2012 13:39:20 +0000 Subject: 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. --- src/buffer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buffer.cc') 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()) -- cgit v1.2.3