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 | 96792018d4b57dd539228c2502e9cdfe6e3aee69 (patch) | |
tree | b91a604428c6c66506a8af6fd8c433b58afe9822 /src/EditView.cxx | |
parent | 1a0589a20247f658d137fa86d2479df6550b1c80 (diff) | |
download | scintilla-mirror-96792018d4b57dd539228c2502e9cdfe6e3aee69.tar.gz |
Bug [#2197]. Fixed bug where layout caching was ineffective.
Diffstat (limited to 'src/EditView.cxx')
-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 5a59c102e..967e2b5a5 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 { |