From 3de9d37c7b8f4501558d309ada718dc52533e94c Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 22 Jan 2025 21:34:54 +1100 Subject: Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY. --- src/Selection.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Selection.cxx') 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; +} -- cgit v1.2.3