diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-07 14:15:55 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-07 14:15:55 +0000 |
| commit | 9db4aa96917184aab8d28436bec37b12ae6a4448 (patch) | |
| tree | 81ee49b68a2e0d057c7c33d1843b684f6f0319f3 /src/buffer.cc | |
| parent | 12535e1099ad966976918e2b407eb6371ab9670c (diff) | |
Buffer: add a type property
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 2ee56106..4e3bb5c3 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -136,8 +136,10 @@ bool BufferIterator::is_end() const return m_position == m_buffer->length(); } -Buffer::Buffer(const std::string& name, const BufferString& initial_content) - : m_name(name), m_history(1), m_history_cursor(m_history.begin()), +Buffer::Buffer(const std::string& name, Type type, + const BufferString& initial_content) + : m_name(name), m_type(type), + m_history(1), m_history_cursor(m_history.begin()), m_content(initial_content), m_last_save_undo_group(m_history.begin()) { BufferManager::instance().register_buffer(this); |
