Go to correct position after word completion
Closes #2675, Closes #2802
This commit is contained in:
parent
6e3726950c
commit
f2756c2286
@ -342,8 +342,8 @@ bool AutoCompletion::showWordComplete(bool autoInsert)
|
||||
|
||||
if (wordArray.size() == 1 && autoInsert)
|
||||
{
|
||||
_pEditView->replaceTargetRegExMode(wordArray[0].c_str(), startPos, curPos);
|
||||
_pEditView->execute(SCI_GOTOPOS, startPos + wordArray[0].length());
|
||||
int replacedLength = _pEditView->replaceTargetRegExMode(wordArray[0].c_str(), startPos, curPos);
|
||||
_pEditView->execute(SCI_GOTOPOS, startPos + replacedLength);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user