fix: Error when drawing selection line of txt file.

This commit is contained in:
Roy Qu 2024-03-02 18:08:55 +08:00
parent 65c2a284d7
commit 907aa41a8e
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ void QSynEditPainter::paintToken(
nX += glyphWidth;
}
tokenWidth += glyphWidth;
if (tokenWidth > last)
if (tokenWidth >= last)
break;
}
}