aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-10-27 08:56:47 +1100
committernyamatongwe <unknown>2010-10-27 08:56:47 +1100
commitc80faa757ba819566a8a82bcbfa97b5ea703468b (patch)
tree257cca717730c9b1501cb20a9b0d8e20b05487a3
parent30ce4d0267afd79ea09005bf4f83ba252240813a (diff)
downloadscintilla-mirror-c80faa757ba819566a8a82bcbfa97b5ea703468b.tar.gz
Better version of last patch should get eolfilled right.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 608201af7..46080557e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2060,7 +2060,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou
ll->styles[styleInLine] = static_cast<char>(styleByte & styleMask);
ll->indicators[styleInLine] = static_cast<char>(styleByte & ~styleMask);
}
- styleByte = static_cast<char>((numCharsInLine ? ll->styles[numCharsInLine] : 0) & styleMask);
+ styleByte = static_cast<char>(((lineLength > 0) ? ll->styles[lineLength-1] : 0) & styleMask);
if (vstyle.someStylesForceCase) {
for (int charInLine = 0; charInLine<lineLength; charInLine++) {
char chDoc = ll->chars[charInLine];