diff options
author | Neil <nyamatongwe@gmail.com> | 2020-08-21 12:30:27 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-08-21 12:30:27 +1000 |
commit | 5707d7fa8b7bae2602c619cf349c1ca06371fe3a (patch) | |
tree | 90c1b8fe935437e85a178ea055839b9a058fcfad /src | |
parent | 686613bfcb7e52010734f6486b4472678d98c7fb (diff) | |
download | scintilla-mirror-5707d7fa8b7bae2602c619cf349c1ca06371fe3a.tar.gz |
Backport: Bug [#2197]. Fixed bug where layout caching was ineffective.
Backport of changeset 8482:aa1c8541f6e1.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index cc6bf7e3b..1b2beb683 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -410,7 +410,8 @@ void EditView::LayoutLine(const EditModel &model, Sci::Line line, Surface *surfa chPrevious = chDoc; numCharsInLine++; } - allSame = allSame && (ll->styles[numCharsInLine] == styleByte); // For eolFilled + const int styleByteLast = (posLineEnd > posLineStart) ? model.pdoc->StyleIndexAt(posLineEnd - 1) : 0; + allSame = allSame && (ll->styles[numCharsInLine] == styleByteLast); // For eolFilled if (allSame) { ll->validity = LineLayout::ValidLevel::positions; } else { |