From e819e732d8399f3ad8dd4af236387ba96a196423 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.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Selection.h') diff --git a/src/Selection.h b/src/Selection.h index d064af642..a3bac724a 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -148,6 +148,10 @@ public: int MainAnchor() const; SelectionRange &Rectangular(); SelectionSegment Limits() const; + // This is for when you want to move the caret in response to a + // user direction command - for rectangular selections, use the range + // that covers all selected text otherwise return the main selection. + SelectionSegment LimitsForRectangularElseMain() const; size_t Count() const; size_t Main() const; void SetMain(size_t r); -- cgit v1.2.3