diff options
author | Neil <nyamatongwe@gmail.com> | 2015-06-24 15:27:07 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-06-24 15:27:07 +1000 |
commit | ad0155fa7c53f9d3d50f21f9de9181f50cda7d88 (patch) | |
tree | 955e0dcfb030f1a5c30a0c4f8c8302feea976a81 /src/Selection.cxx | |
parent | 93e72ff752dcbb9d868ac451ac90bcbab1e57243 (diff) | |
download | scintilla-mirror-ad0155fa7c53f9d3d50f21f9de9181f50cda7d88.tar.gz |
Make multiple selection work over most cursor movement and selection, new line,
and word and line part deletion commands.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r-- | src/Selection.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx index f4308b130..0a7c15c1a 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -311,6 +311,14 @@ void Selection::TrimSelection(SelectionRange range) { } } +void Selection::TrimOtherSelections(size_t r, SelectionRange range) { + for (size_t i = 0; i<ranges.size(); ++i) { + if (i != r) { + ranges[i].Trim(range); + } + } +} + void Selection::SetSelection(SelectionRange range) { ranges.clear(); ranges.push_back(range); |