mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
Fix autocomplete case insensitive not working issue
Fix #11187, close #11191
This commit is contained in:
parent
de43eca30e
commit
726ad7f580
@ -164,7 +164,6 @@ bool AutoCompletion::showApiAndWordComplete()
|
|||||||
|
|
||||||
// Add keywords to word array
|
// Add keywords to word array
|
||||||
|
|
||||||
bool canStop = false;
|
|
||||||
for (size_t i = 0, kwlen = _keyWordArray.size(); i < kwlen; ++i)
|
for (size_t i = 0, kwlen = _keyWordArray.size(); i < kwlen; ++i)
|
||||||
{
|
{
|
||||||
int compareResult = 0;
|
int compareResult = 0;
|
||||||
@ -183,12 +182,6 @@ bool AutoCompletion::showApiAndWordComplete()
|
|||||||
{
|
{
|
||||||
if (!isInList(_keyWordArray[i], wordArray))
|
if (!isInList(_keyWordArray[i], wordArray))
|
||||||
wordArray.push_back(_keyWordArray[i]);
|
wordArray.push_back(_keyWordArray[i]);
|
||||||
canStop = true;
|
|
||||||
}
|
|
||||||
else if (canStop)
|
|
||||||
{
|
|
||||||
// Early out since no more strings will match
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user