summaryrefslogtreecommitdiff
path: root/src/selection.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.hh')
-rw-r--r--src/selection.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/selection.hh b/src/selection.hh
index f8727b90..5f0ce459 100644
--- a/src/selection.hh
+++ b/src/selection.hh
@@ -73,6 +73,8 @@ struct SelectionList
void rotate_main(int count) { m_main = (m_main + count) % size(); }
+ void avoid_eol();
+
void push_back(const Selection& sel) { m_selections.push_back(sel); }
void push_back(Selection&& sel) { m_selections.push_back(std::move(sel)); }
@@ -92,6 +94,10 @@ struct SelectionList
iterator begin() { return m_selections.begin(); }
iterator end() { return m_selections.end(); }
+ using reverse_iterator = std::vector<Selection>::reverse_iterator;
+ reverse_iterator rbegin() { return m_selections.rbegin(); }
+ reverse_iterator rend() { return m_selections.rend(); }
+
using const_iterator = std::vector<Selection>::const_iterator;
const_iterator begin() const { return m_selections.begin(); }
const_iterator end() const { return m_selections.end(); }