Fix wrong treatment of backslashes as escape sequences in autocompletion
Change autocomplete to not use regex mode replacement. Fix #8397, close #8440pull/8453/head
parent
19bdbd093c
commit
d13795a37a
|
@ -378,7 +378,7 @@ bool AutoCompletion::showWordComplete(bool autoInsert)
|
||||||
|
|
||||||
if (wordArray.size() == 1 && 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);
|
_pEditView->execute(SCI_GOTOPOS, startPos + replacedLength);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue