From 355c9bde45e0516bb43e8ff17c8c606f68fcb5b9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 30 Jan 2010 23:32:31 +0000 Subject: Fix bug #2942131 Caret pos after rectagular delete. --- src/Selection.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Selection.cxx') diff --git a/src/Selection.cxx b/src/Selection.cxx index 566cb1074..2cdbe60f2 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -192,6 +192,14 @@ SelectionSegment Selection::Limits() const { } } +SelectionSegment Selection::LimitsForRectangularElseMain() const { + if (IsRectangular()) { + return Limits(); + } else { + return SelectionSegment(ranges[mainRange].caret, ranges[mainRange].anchor); + } +} + size_t Selection::Count() const { return ranges.size(); } -- cgit v1.2.3