diff options
author | nyamatongwe <devnull@localhost> | 2010-11-21 07:16:01 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-11-21 07:16:01 +1100 |
commit | 28aca42cc9e439d5c409ee9f46165bd3a6ab89c3 (patch) | |
tree | 1fc840e2a3a9dba28c0256ed3439c80e8c2ce1b8 /src/Selection.cxx | |
parent | 0c0ab6c35d22817cfffba14d00fc26d846da7d89 (diff) | |
download | scintilla-mirror-28aca42cc9e439d5c409ee9f46165bd3a6ab89c3.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; |