mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 08:14:18 +02:00
Fix missing items in word autocomplete
Word autocomplete change from case sensitive search to variable search based on _ignoreCase unless language type is text. This allows text documents to retain case sensitive search to respect typed case as the issue only affects case insensitive Data/Programming languages. If normal.xml exist in the autocomplete folder then xml defaults apply for text so would be case insensitive by default unless overridden by the xml setting <Environment ignoreCase="no" />. Fix #13060, close #13062
This commit is contained in:
parent
f38195a0da
commit
9285bf2d42
@ -458,7 +458,10 @@ void AutoCompletion::getWordArray(vector<generic_string> & wordArray, TCHAR *beg
|
||||
|
||||
size_t docLength = _pEditView->execute(SCI_GETLENGTH);
|
||||
|
||||
int flags = SCFIND_WORDSTART | SCFIND_MATCHCASE | SCFIND_REGEXP | SCFIND_POSIX;
|
||||
int flags = SCFIND_WORDSTART | SCFIND_REGEXP | SCFIND_POSIX;
|
||||
|
||||
if (!_ignoreCase || (!_funcCompletionActive && _curLang == L_TEXT))
|
||||
flags |= SCFIND_MATCHCASE;
|
||||
|
||||
_pEditView->execute(SCI_SETSEARCHFLAGS, flags);
|
||||
intptr_t posFind = _pEditView->searchInTarget(expr.c_str(), expr.length(), 0, docLength);
|
||||
|
Loading…
x
Reference in New Issue
Block a user