aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-11-21 07:16:01 +1100
committernyamatongwe <unknown>2010-11-21 07:16:01 +1100
commit9ff23b64faa9654d6978494f65afe9c09932840a (patch)
tree3d2fbf4e78d848c021b6bc0894f6a6107bd0b7c1 /src/Selection.cxx
parent9352b0b27b48261989d908380be8f7fa91facdb9 (diff)
downloadscintilla-mirror-9ff23b64faa9654d6978494f65afe9c09932840a.tar.gz
Speed up creating large rectangular selections.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r--src/Selection.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx
index 6f3267dfa..48add617c 100644
--- a/src/Selection.cxx
+++ b/src/Selection.cxx
@@ -291,6 +291,11 @@ void Selection::AddSelection(SelectionRange range) {
mainRange = ranges.size() - 1;
}
+void Selection::AddSelectionWithoutTrim(SelectionRange range) {
+ ranges.push_back(range);
+ mainRange = ranges.size() - 1;
+}
+
void Selection::TentativeSelection(SelectionRange range) {
if (!tentativeMain) {
rangesSaved = ranges;