diff options
| author | nyamatongwe <unknown> | 2010-10-20 16:16:52 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-10-20 16:16:52 +1100 | 
| commit | b22f205755e121cf0262dfa735d7595655f9f091 (patch) | |
| tree | 79ab657b3a31919fcd7bc66248377c2bad68bcc2 | |
| parent | b316fcf67979d79e08c1741af0bfd757067d641a (diff) | |
| download | scintilla-mirror-b22f205755e121cf0262dfa735d7595655f9f091.tar.gz | |
Fixed code that did not split style bytes into styles and indicators.
| -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++) { | 
