summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-19 14:19:31 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-19 14:19:31 +0100
commit22c545884fc9707720db4f7a6b69fbb027ad7699 (patch)
tree6fe212b8b7c58f1c1bf83f8923a411da3a30c471 /src
parent45bd3dbe5a9d6234f4ad01e3e656b827bf9aaf6d (diff)
Selection: allow write access to first and last
Diffstat (limited to 'src')
-rw-r--r--src/selection.hh3
1 files changed, 3 insertions, 0 deletions
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();