mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
parent
4369718925
commit
70762b1a03
@ -101,7 +101,19 @@ bool AutoCompletion::showApiAndWordComplete()
|
|||||||
bool canStop = false;
|
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)
|
||||||
{
|
{
|
||||||
if (_keyWordArray[i].compare(0, len, beginChars) == 0)
|
int compareResult = 0;
|
||||||
|
|
||||||
|
if (_ignoreCase)
|
||||||
|
{
|
||||||
|
generic_string kwSufix = _keyWordArray[i].substr(0, len);
|
||||||
|
compareResult = generic_stricmp(beginChars, kwSufix.c_str());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
compareResult = _keyWordArray[i].compare(0, len, beginChars);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (compareResult == 0)
|
||||||
{
|
{
|
||||||
if (!isInList(_keyWordArray[i], wordArray))
|
if (!isInList(_keyWordArray[i], wordArray))
|
||||||
wordArray.push_back(_keyWordArray[i]);
|
wordArray.push_back(_keyWordArray[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user