aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/EditView.cxx3
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 {