aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AutoComplete.cxx2
-rw-r--r--src/ScintillaBase.cxx7
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();