diff options
author | nyamatongwe <unknown> | 2001-04-05 01:58:04 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-04-05 01:58:04 +0000 |
commit | 508b1b5ca03dffc1ec2d5a98a378da4cdd30ef84 (patch) | |
tree | 7141531f889b0ffe3a3b262faa9ef8924fa17018 /src/AutoComplete.cxx | |
parent | 9b04df8e99b54645a92580712a6551b39ac511f5 (diff) | |
download | scintilla-mirror-508b1b5ca03dffc1ec2d5a98a378da4cdd30ef84.tar.gz |
Replace target functionality to make find and replace operations faster
by diminishing screen updates and allow for \d patterns in the replacement
text.
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r-- | src/AutoComplete.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 6abae23d6..81eb12d99 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -117,7 +117,9 @@ 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) + Cancel(); + else lb.Select(pos); } |