aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-04-27 12:41:50 +0000
committernyamatongwe <devnull@localhost>2001-04-27 12:41:50 +0000
commit33ce86f2a9e5389f7dd9922eb387936b61364259 (patch)
tree5a17afae1b3e4d7fd6770f78a5b818ec55cc0997 /src/AutoComplete.cxx
parentc55ee551f806eabd9eb0ca6f501921c08cbda980 (diff)
downloadscintilla-mirror-33ce86f2a9e5389f7dd9922eb387936b61364259.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);