Selection: allow write access to first and last

This commit is contained in:
Maxime Coste 2012-11-19 14:19:31 +01:00
parent 45bd3dbe5a
commit 22c545884f

View File

@ -28,6 +28,9 @@ struct Selection : public BufferChangeListener
const BufferIterator& first() const { return m_first; } const BufferIterator& first() const { return m_first; }
const BufferIterator& last() const { return m_last; } const BufferIterator& last() const { return m_last; }
BufferIterator& first() { return m_first; }
BufferIterator& last() { return m_last; }
void merge_with(const Selection& selection); void merge_with(const Selection& selection);
void avoid_eol(); void avoid_eol();