fix: line break not correctly displayed.

This commit is contained in:
Roy Qu 2024-04-15 10:56:18 +08:00
parent 92273a30bb
commit 0662c59e91
1 changed files with 1 additions and 2 deletions

View File

@ -1125,7 +1125,6 @@ void QSynEditPainter::paintLines()
if (mIsCurrentLine && mEdit->mInputPreeditString.length()>0) {
int startPos = mEdit->mSyntaxer->getTokenPos()+1;
int endPos = mEdit->mSyntaxer->getTokenPos() + sToken.length();
//qDebug()<<startPos<<":"<<endPos<<" - "+sToken+" - "<<edit->mCaretX<<":"<<edit->mCaretX+edit->mInputPreeditString.length();
if (!(endPos < mEdit->mCaretX
|| startPos >= mEdit->mCaretX+mEdit->mInputPreeditString.length())) {
if (!preeditAttr) {
@ -1200,7 +1199,7 @@ void QSynEditPainter::paintLines()
glyphStartCharList,
oldLen,
sLine.length(),
calculateGlyphPositions,
true,
glyphStartPositionsList,
tokenWidth);
tokenLeft += tokenWidth;