mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-22 01:18:12 +02:00
Fix wrong treatment of backslashes as escape sequences in autocompletion
Change autocomplete to not use regex mode replacement. Fix #8397, close #8440
This commit is contained in:
parent
19bdbd093c
commit
d13795a37a
@ -378,7 +378,7 @@ bool AutoCompletion::showWordComplete(bool autoInsert)
|
||||
|
||||
if (wordArray.size() == 1 && autoInsert)
|
||||
{
|
||||
int replacedLength = _pEditView->replaceTargetRegExMode(wordArray[0].c_str(), startPos, curPos);
|
||||
int replacedLength = _pEditView->replaceTarget(wordArray[0].c_str(), startPos, curPos);
|
||||
_pEditView->execute(SCI_GOTOPOS, startPos + replacedLength);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user