diff options
| author | nyamatongwe <devnull@localhost> | 2010-10-20 16:16:52 +1100 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-10-20 16:16:52 +1100 | 
| commit | 79a78d47a8e60fcb7135d02ffa101f9374b1fe80 (patch) | |
| tree | 8866ce383d1c2ead8c608895077d689df8b9c24a /src | |
| parent | 1d801fba7580276f1a91af5019d5d2ac59372a37 (diff) | |
| download | scintilla-mirror-79a78d47a8e60fcb7135d02ffa101f9374b1fe80.tar.gz | |
Fixed code that did not split style bytes into styles and indicators.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 8 | 
1 files changed, 4 insertions, 4 deletions
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<char>(styleByte & styleMask); -			ll->indicators[numCharsInLine] = static_cast<char>(styleByte & ~styleMask); +			ll->styles[styleInLine] = static_cast<char>(styleByte & styleMask); +			ll->indicators[styleInLine] = static_cast<char>(styleByte & ~styleMask);  		}  		if (vstyle.someStylesForceCase) {  			for (int charInLine = 0; charInLine<lineLength; charInLine++) {  | 
