diff options
author | nyamatongwe <unknown> | 2000-07-12 03:39:49 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-07-12 03:39:49 +0000 |
commit | befcf67e8df6f8b80df05efa8f77ec81fc3ea45b (patch) | |
tree | e9082783244851d58fffe9faae8af129f92b0409 /src | |
parent | 372b4cbe4a43236de333d2b0dda964973b886bc8 (diff) | |
download | scintilla-mirror-befcf67e8df6f8b80df05efa8f77ec81fc3ea45b.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(); |