diff options
| author | nyamatongwe <unknown> | 2009-07-09 07:58:04 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-07-09 07:58:04 +0000 | 
| commit | 784bfcdf8f6b6e9a54399f6f8de3b1aafac39cc7 (patch) | |
| tree | 8003b34c6c9c45f2a0242b282d25a7bc29e06221 /src/Selection.cxx | |
| parent | 27115c80992f89e771b14def710dcd544d252b52 (diff) | |
| download | scintilla-mirror-784bfcdf8f6b6e9a54399f6f8de3b1aafac39cc7.tar.gz | |
Added setings for colours, alpha, and caret colour for additional
selections.
Diffstat (limited to 'src/Selection.cxx')
| -rw-r--r-- | src/Selection.cxx | 12 | 
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 {  | 
