From 9031df222bb35cfc042fa786a6a417addadda932 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 26 Oct 2010 20:33:41 +1100 Subject: Fix problem with background style appearing after last character on line. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 83b33e51d..2f7cc4163 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2060,6 +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); if (vstyle.someStylesForceCase) { for (int charInLine = 0; charInLinechars[charInLine]; -- cgit v1.2.3