Fix wrong treatment of backslashes as escape sequences in autocompletion

Change autocomplete to not use regex mode replacement.

Fix #8397, close #8440
pull/8453/head
Scott Sumner 2020-06-19 13:59:11 -04:00 committed by Don HO
parent 19bdbd093c
commit d13795a37a
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}