aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-10-27 08:56:47 +1100
committernyamatongwe <devnull@localhost>2010-10-27 08:56:47 +1100
commitea5ecbf1e371b6ce204b65823916bf28e7ecf0b9 (patch)
treefa292cb9aa5fc46744b755785fdbf575e65ff847 /src
parent7f3e4e3eba6e6a5ac29290db878c5382caa64cd1 (diff)
downloadscintilla-mirror-ea5ecbf1e371b6ce204b65823916bf28e7ecf0b9.tar.gz
Better version of last patch should get eolfilled right.
Diffstat (limited to 'src')
-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];