aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r--src/Selection.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx
index 82614b040..a4531d65b 100644
--- a/src/Selection.cxx
+++ b/src/Selection.cxx
@@ -217,6 +217,10 @@ SelectionRange &Selection::Rectangular() noexcept {
return rangeRectangular;
}
+SelectionRange Selection::RectangularCopy() const noexcept {
+ return rangeRectangular;
+}
+
SelectionSegment Selection::Limits() const noexcept {
PLATFORM_ASSERT(!ranges.empty());
SelectionSegment sr(ranges[0].anchor, ranges[0].caret);
@@ -456,3 +460,6 @@ void Selection::RotateMain() noexcept {
mainRange = (mainRange + 1) % ranges.size();
}
+void Selection::SetRanges(const Ranges &rangesToSet) {
+ ranges = rangesToSet;
+}