diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-24 14:26:21 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-24 14:26:21 +0000 |
| commit | d2c6ceb47b532d125c3cafffdca79fada54ee21f (patch) | |
| tree | e13757428f023d134cf0ba51bfab880a60c8ae40 /src/window.hh | |
| parent | bace526fa31f1ce9fbc89a1c468f2dc91bee8845 (diff) | |
DynamicBufferIterator: add and use in Selections
DynamicBufferIterator are a new type of BufferIterators that
automatically update themselves when their buffer is modified.
Selections now uses this type of iterators instead of plain ones
Diffstat (limited to 'src/window.hh')
| -rw-r--r-- | src/window.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.hh b/src/window.hh index 9ae7862c..2b62794b 100644 --- a/src/window.hh +++ b/src/window.hh @@ -4,6 +4,7 @@ #include <functional> #include "buffer.hh" +#include "dynamic_buffer_iterator.hh" #include "display_buffer.hh" namespace Kakoune @@ -23,8 +24,8 @@ struct Selection void offset(int offset); private: - BufferIterator m_first; - BufferIterator m_last; + DynamicBufferIterator m_first; + DynamicBufferIterator m_last; }; typedef std::vector<Selection> SelectionList; |
