From 784bfcdf8f6b6e9a54399f6f8de3b1aafac39cc7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 9 Jul 2009 07:58:04 +0000 Subject: Added setings for colours, alpha, and caret colour for additional selections. --- src/Selection.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Selection.cxx') 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 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 { -- cgit v1.2.3