fix: indent error when overwrite ‘}’

This commit is contained in:
royqh1979 2021-09-01 17:39:54 +08:00
parent ff4e20ae18
commit 8e3c85e027
1 changed files with 1 additions and 3 deletions

View File

@ -2314,7 +2314,7 @@ void SynEdit::doAddChar(QChar AChar)
while (i<matchline.length() && (matchline[i]==' ' || matchline[i]=='\t')) {
i++;
}
QString temp = matchline.mid(0,i) + line.mid(oldCaretX-1);
QString temp = matchline.mid(0,i) + line.mid(mCaretX-1);
mLines->putString(oldCaretY-1,temp);
internalSetCaretXY(BufferCoord{i+1,oldCaretY});
mUndoList->AddChange(
@ -2331,8 +2331,6 @@ void SynEdit::doAddChar(QChar AChar)
"",
SynSelectionMode::smNormal
);
mLines->getString(mCaretY-1);
return;
}
}
}