From c80faa757ba819566a8a82bcbfa97b5ea703468b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 27 Oct 2010 08:56:47 +1100 Subject: Better version of last patch should get eolfilled right. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(styleByte & styleMask); ll->indicators[styleInLine] = static_cast(styleByte & ~styleMask); } - styleByte = static_cast((numCharsInLine ? ll->styles[numCharsInLine] : 0) & styleMask); + styleByte = static_cast(((lineLength > 0) ? ll->styles[lineLength-1] : 0) & styleMask); if (vstyle.someStylesForceCase) { for (int charInLine = 0; charInLinechars[charInLine]; -- cgit v1.2.3