diff options
| author | nyamatongwe <unknown> | 2012-04-16 09:05:21 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2012-04-16 09:05:21 +1000 | 
| commit | d5110563aee91348b5c60a13a0aaf2893d50d3ea (patch) | |
| tree | 10490965d3b172a48843097840ab4712092c5cd2 /src/AutoComplete.cxx | |
| parent | 09b1f297feb98e85d7b01fbd7b39e4bfdd2516e0 (diff) | |
| download | scintilla-mirror-d5110563aee91348b5c60a13a0aaf2893d50d3ea.tar.gz | |
Case-insensitive auto-completion selection. Bug #3516538.
From Markus Nißl.
Diffstat (limited to 'src/AutoComplete.cxx')
| -rw-r--r-- | src/AutoComplete.cxx | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 2752ef0c9..644f16517 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -14,6 +14,7 @@  #include "CharacterSet.h"  #include "AutoComplete.h" +#include "Scintilla.h"  #ifdef SCI_NAMESPACE  using namespace Scintilla; @@ -30,7 +31,8 @@ AutoComplete::AutoComplete() :  	startLen(0),  	cancelAtStartPos(true),  	autoHide(true), -	dropRestOfWord(false)	{ +	dropRestOfWord(false), +	ignoreCaseBehaviour(SC_CASEINSENSITITIVEBEHAVIOUR_RESPECTCASE) {  	lb = ListBox::Allocate();  	stopChars[0] = '\0';  	fillUpChars[0] = '\0'; @@ -153,7 +155,8 @@ void AutoComplete::Select(const char *word) {  				--pivot;  			}  			location = pivot; -			if (ignoreCase) { +			if (ignoreCase +				&& ignoreCaseBehaviour == SC_CASEINSENSITITIVEBEHAVIOUR_RESPECTCASE) {  				// Check for exact-case match  				for (; pivot <= end; pivot++) {  					lb->GetValue(pivot, item, maxItemLen);  | 
