diff options
author | nyamatongwe <unknown> | 2010-11-21 07:16:01 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-11-21 07:16:01 +1100 |
commit | 9ff23b64faa9654d6978494f65afe9c09932840a (patch) | |
tree | 3d2fbf4e78d848c021b6bc0894f6a6107bd0b7c1 /src/Selection.cxx | |
parent | 9352b0b27b48261989d908380be8f7fa91facdb9 (diff) | |
download | scintilla-mirror-9ff23b64faa9654d6978494f65afe9c09932840a.tar.gz |
Speed up creating large rectangular selections.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r-- | src/Selection.cxx | 5 |
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; |