diff options
author | nyamatongwe <unknown> | 2010-10-26 20:33:41 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-10-26 20:33:41 +1100 |
commit | 9031df222bb35cfc042fa786a6a417addadda932 (patch) | |
tree | ac6036bc6ac09b2f93cfe6d11ed172c9cb1fa89f /src/Editor.cxx | |
parent | 28dba5ed80fcdbd96ef5aab082ec723cca81d787 (diff) | |
download | scintilla-mirror-9031df222bb35cfc042fa786a6a417addadda932.tar.gz |
Fix problem with background style appearing after last character on line.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 1 |
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]; |