diff options
Diffstat (limited to 'src/PropSet.cxx')
-rw-r--r-- | src/PropSet.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx index a58d14316..d5be286e1 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -513,10 +513,10 @@ const char *WordList::GetNearestWord(const char *wordStart, int searchLen /*= -1 cond = strncasecmp(wordStart, word, searchLen); if (!cond && nonFuncChar(word[searchLen])) // maybe there should be a "non-word character" test here? return word; // result must not be freed with free() + else if (cond >= 0) + start = pivot + 1; else if (cond < 0) end = pivot - 1; - else if (cond > 0) - start = pivot + 1; } else // preserve the letter case while (start <= end) { // binary searching loop |