From b22f205755e121cf0262dfa735d7595655f9f091 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 20 Oct 2010 16:16:52 +1100 Subject: Fixed code that did not split style bytes into styles and indicators. --- src/Editor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index c03ff8f31..83b33e51d 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2054,11 +2054,11 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou numCharsBeforeEOL--; } const int numCharsInLine = (vstyle.viewEOL) ? lineLength : numCharsBeforeEOL; - for (int charInLine = 0; charInLine < numCharsInLine; charInLine++) { - styleByte = ll->styles[charInLine]; + for (int styleInLine = 0; styleInLine < numCharsInLine; styleInLine++) { + styleByte = ll->styles[styleInLine]; ll->styleBitsSet |= styleByte; - ll->styles[numCharsInLine] = static_cast(styleByte & styleMask); - ll->indicators[numCharsInLine] = static_cast(styleByte & ~styleMask); + ll->styles[styleInLine] = static_cast(styleByte & styleMask); + ll->indicators[styleInLine] = static_cast(styleByte & ~styleMask); } if (vstyle.someStylesForceCase) { for (int charInLine = 0; charInLine