aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-06-24 15:27:07 +1000
committerNeil <nyamatongwe@gmail.com>2015-06-24 15:27:07 +1000
commitad0155fa7c53f9d3d50f21f9de9181f50cda7d88 (patch)
tree955e0dcfb030f1a5c30a0c4f8c8302feea976a81 /src/Selection.cxx
parent93e72ff752dcbb9d868ac451ac90bcbab1e57243 (diff)
downloadscintilla-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.cxx8
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);