aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-09 07:58:04 +0000
committernyamatongwe <devnull@localhost>2009-07-09 07:58:04 +0000
commit50d215e3ac79be5f256d66f1911ab6582e5851d6 (patch)
tree8003b34c6c9c45f2a0242b282d25a7bc29e06221 /src/Selection.cxx
parent00a99b814014f00cea5c64f205b8a701a8b69b58 (diff)
downloadscintilla-mirror-50d215e3ac79be5f256d66f1911ab6582e5851d6.tar.gz
Added setings for colours, alpha, and caret colour for additional
selections.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r--src/Selection.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx
index 28a70b62b..d9c59cdb1 100644
--- a/src/Selection.cxx
+++ b/src/Selection.cxx
@@ -314,20 +314,20 @@ void Selection::AddSelection(SelectionPosition spStartPos, SelectionPosition spE
nRanges++;
}
-bool Selection::CharacterInSelection(int posCharacter) const {
+int Selection::CharacterInSelection(int posCharacter) const {
for (size_t i=0; i<nRanges; i++) {
if (ranges[i].ContainsCharacter(posCharacter))
- return true;
+ return i == mainRange ? 1 : 2;
}
- return false;
+ return 0;
}
-bool Selection::InSelectionForEOL(int pos) const {
+int Selection::InSelectionForEOL(int pos) const {
for (size_t i=0; i<nRanges; i++) {
if (!ranges[i].Empty() && (pos > ranges[i].Start().Position()) && (pos <= ranges[i].End().Position()))
- return true;
+ return i == mainRange ? 1 : 2;
}
- return false;
+ return 0;
}
int Selection::VirtualSpaceFor(int pos) const {