aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-04-27 12:41:50 +0000
committernyamatongwe <unknown>2001-04-27 12:41:50 +0000
commit47c3e67c26e19f237bab42d3a98019add82bb4b5 (patch)
tree5a17afae1b3e4d7fd6770f78a5b818ec55cc0997 /src/AutoComplete.cxx
parent9701edb696cc54ae66f1e10fb6e946df1426f71a (diff)
downloadscintilla-mirror-47c3e67c26e19f237bab42d3a98019add82bb4b5.tar.gz
Feature from Stephan to allow autocompletion to stay open even when there
are no longer any values that start with the typed text.
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r--src/AutoComplete.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx
index 81eb12d99..676a4124d 100644
--- a/src/AutoComplete.cxx
+++ b/src/AutoComplete.cxx
@@ -19,7 +19,8 @@ AutoComplete::AutoComplete() :
chooseSingle(false),
posStart(0),
startLen(0),
- cancelAtStartPos(true) {
+ cancelAtStartPos(true),
+ autoHide(true) {
stopChars[0] = '\0';
fillUpChars[0] = '\0';
}
@@ -117,7 +118,7 @@ void AutoComplete::Move(int delta) {
void AutoComplete::Select(const char *word) {
int pos = lb.Find(word);
//Platform::DebugPrintf("Autocompleting at <%s> %d\n", wordCurrent, pos);
- if (pos == -1)
+ if (pos == -1 && autoHide)
Cancel();
else
lb.Select(pos);