fix: line break not correctly displayed.
This commit is contained in:
parent
92273a30bb
commit
0662c59e91
|
@ -1125,7 +1125,6 @@ void QSynEditPainter::paintLines()
|
||||||
if (mIsCurrentLine && mEdit->mInputPreeditString.length()>0) {
|
if (mIsCurrentLine && mEdit->mInputPreeditString.length()>0) {
|
||||||
int startPos = mEdit->mSyntaxer->getTokenPos()+1;
|
int startPos = mEdit->mSyntaxer->getTokenPos()+1;
|
||||||
int endPos = mEdit->mSyntaxer->getTokenPos() + sToken.length();
|
int endPos = mEdit->mSyntaxer->getTokenPos() + sToken.length();
|
||||||
//qDebug()<<startPos<<":"<<endPos<<" - "+sToken+" - "<<edit->mCaretX<<":"<<edit->mCaretX+edit->mInputPreeditString.length();
|
|
||||||
if (!(endPos < mEdit->mCaretX
|
if (!(endPos < mEdit->mCaretX
|
||||||
|| startPos >= mEdit->mCaretX+mEdit->mInputPreeditString.length())) {
|
|| startPos >= mEdit->mCaretX+mEdit->mInputPreeditString.length())) {
|
||||||
if (!preeditAttr) {
|
if (!preeditAttr) {
|
||||||
|
@ -1200,7 +1199,7 @@ void QSynEditPainter::paintLines()
|
||||||
glyphStartCharList,
|
glyphStartCharList,
|
||||||
oldLen,
|
oldLen,
|
||||||
sLine.length(),
|
sLine.length(),
|
||||||
calculateGlyphPositions,
|
true,
|
||||||
glyphStartPositionsList,
|
glyphStartPositionsList,
|
||||||
tokenWidth);
|
tokenWidth);
|
||||||
tokenLeft += tokenWidth;
|
tokenLeft += tokenWidth;
|
||||||
|
|
Loading…
Reference in New Issue