aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-01-30 23:32:31 +0000
committernyamatongwe <devnull@localhost>2010-01-30 23:32:31 +0000
commit355c9bde45e0516bb43e8ff17c8c606f68fcb5b9 (patch)
tree3cb7dc952cf37135f963373295430eda84b4f90e /src/Selection.h
parent2500ebc8eda4588b3a0cba45484470ea417afbde (diff)
downloadscintilla-mirror-355c9bde45e0516bb43e8ff17c8c606f68fcb5b9.tar.gz
Fix bug #2942131 Caret pos after rectagular delete.
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h4
1 files changed, 4 insertions, 0 deletions
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);