diff options
| author | nyamatongwe <devnull@localhost> | 2000-07-12 03:39:49 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-07-12 03:39:49 +0000 | 
| commit | 9bde3adbd08a9f706655f0e0fe1c9adf685408a0 (patch) | |
| tree | e9082783244851d58fffe9faae8af129f92b0409 /src | |
| parent | 762e9a08d98e8e1c8c67982259be3dacc3cd7f2c (diff) | |
| download | scintilla-mirror-9bde3adbd08a9f706655f0e0fe1c9adf685408a0.tar.gz | |
Autocompletion cancel at start position available to API.
Inverted default value to be compatible with older code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/AutoComplete.cxx | 2 | ||||
| -rw-r--r-- | src/ScintillaBase.cxx | 7 | 
2 files changed, 8 insertions, 1 deletions
| diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 00a3a75fc..d45ab27a6 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -16,7 +16,7 @@ AutoComplete::AutoComplete() {  	posStart = 0;  	strcpy(stopChars, "");  	separator = ' '; -	cancelAtStartPos = false; +	cancelAtStartPos = true;  }  AutoComplete::~AutoComplete() { diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index f14426969..bf1b28394 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -351,6 +351,13 @@ LRESULT ScintillaBase::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  	case SCI_AUTOCSELECT:  		ac.Select(reinterpret_cast<char *>(lParam));  		break; +	 +	case SCI_AUTOCSETCANCELATSTART: +		ac.cancelAtStartPos = wParam; +		break; +	 +	case SCI_AUTOCGETCANCELATSTART: +		return ac.cancelAtStartPos;  	case SCI_CALLTIPSHOW: {  			AutoCompleteCancel(); | 
