aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-10-26 20:33:41 +1100
committernyamatongwe <devnull@localhost>2010-10-26 20:33:41 +1100
commit9cf05db013099178676df82f6ecded907a363890 (patch)
treefe69fa8369d669f4971a18c4c5fd13cace504535 /src/Editor.cxx
parent9ee82981e4ac317afcf7bbb411757a4235d08a98 (diff)
downloadscintilla-mirror-9cf05db013099178676df82f6ecded907a363890.tar.gz
Fix problem with background style appearing after last character on line.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
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<char>(styleByte & styleMask);
ll->indicators[styleInLine] = static_cast<char>(styleByte & ~styleMask);
}
+ styleByte =static_cast<char>((numCharsInLine ? ll->styles[numCharsInLine] : 0) & styleMask);
if (vstyle.someStylesForceCase) {
for (int charInLine = 0; charInLine<lineLength; charInLine++) {
char chDoc = ll->chars[charInLine];