aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-01-22 21:34:54 +1100
committerNeil <nyamatongwe@gmail.com>2025-01-22 21:34:54 +1100
commit3de9d37c7b8f4501558d309ada718dc52533e94c (patch)
treece87afaff43a86c26c562fefcf0c9a5ea409ef6b /src/Selection.cxx
parentbac32d7fde0b1d052ac9e926c6b3c96afe39bcfd (diff)
downloadscintilla-mirror-3de9d37c7b8f4501558d309ada718dc52533e94c.tar.gz
Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY.
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;
+}