- fix: inefficient loop when render long lines

This commit is contained in:
Roy Qu 2022-07-29 18:33:08 +08:00
parent 1ce0ec3d32
commit fc1de8f28c
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Red Panda C++ Version 1.1.6
- enhancement: choose default language when first run
- fix: Drag&Drop no correctly disabled for readonly editors
- enhancement: disable column mode in readonly editors
- fix: inefficient loop when render long lines
Red Panda C++ Version 1.1.5

View File

@ -971,7 +971,7 @@ void SynEditTextPainter::paintLines()
if (nTokenColumnsBefore + nTokenColumnLen >= vLastChar) {
if (nTokenColumnsBefore >= vLastChar)
break; //*** BREAK ***
nTokenColumnLen = vLastChar - nTokenColumnsBefore - 1;
nTokenColumnLen = vLastChar - nTokenColumnsBefore;
}
// It's at least partially visible. Get the token attributes now.
attr = edit->mHighlighter->getTokenAttribute();