From 22c545884fc9707720db4f7a6b69fbb027ad7699 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 19 Nov 2012 14:19:31 +0100 Subject: [PATCH] Selection: allow write access to first and last --- src/selection.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/selection.hh b/src/selection.hh index 52267198..3de6937e 100644 --- a/src/selection.hh +++ b/src/selection.hh @@ -28,6 +28,9 @@ struct Selection : public BufferChangeListener const BufferIterator& first() const { return m_first; } const BufferIterator& last() const { return m_last; } + BufferIterator& first() { return m_first; } + BufferIterator& last() { return m_last; } + void merge_with(const Selection& selection); void avoid_eol();