- fix: inefficient loop when render long lines
This commit is contained in:
parent
1ce0ec3d32
commit
fc1de8f28c
1
NEWS.md
1
NEWS.md
|
@ -7,6 +7,7 @@ Red Panda C++ Version 1.1.6
|
||||||
- enhancement: choose default language when first run
|
- enhancement: choose default language when first run
|
||||||
- fix: Drag&Drop no correctly disabled for readonly editors
|
- fix: Drag&Drop no correctly disabled for readonly editors
|
||||||
- enhancement: disable column mode in readonly editors
|
- enhancement: disable column mode in readonly editors
|
||||||
|
- fix: inefficient loop when render long lines
|
||||||
|
|
||||||
Red Panda C++ Version 1.1.5
|
Red Panda C++ Version 1.1.5
|
||||||
|
|
||||||
|
|
|
@ -971,7 +971,7 @@ void SynEditTextPainter::paintLines()
|
||||||
if (nTokenColumnsBefore + nTokenColumnLen >= vLastChar) {
|
if (nTokenColumnsBefore + nTokenColumnLen >= vLastChar) {
|
||||||
if (nTokenColumnsBefore >= vLastChar)
|
if (nTokenColumnsBefore >= vLastChar)
|
||||||
break; //*** BREAK ***
|
break; //*** BREAK ***
|
||||||
nTokenColumnLen = vLastChar - nTokenColumnsBefore - 1;
|
nTokenColumnLen = vLastChar - nTokenColumnsBefore;
|
||||||
}
|
}
|
||||||
// It's at least partially visible. Get the token attributes now.
|
// It's at least partially visible. Get the token attributes now.
|
||||||
attr = edit->mHighlighter->getTokenAttribute();
|
attr = edit->mHighlighter->getTokenAttribute();
|
||||||
|
|
Loading…
Reference in New Issue