aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2019-04-25 10:53:03 +1000
committerZufu Liu <unknown>2019-04-25 10:53:03 +1000
commitb854aa1d20e92de390e6314a597b021b23b96cd0 (patch)
treef42f1886a13f6f7b2e8dcd112b97fa6e0605d2f1
parent05a151ffddea04578679bf4a9bc821b19db31e43 (diff)
downloadscintilla-mirror-b854aa1d20e92de390e6314a597b021b23b96cd0.tar.gz
Bug [#1238]. Removed redundant loop.
-rw-r--r--src/EditView.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index a26412954..ffeb20648 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -425,10 +425,6 @@ void EditView::LayoutLine(const EditModel &model, Sci::Line line, Surface *surfa
model.pdoc->GetStyleRange(ll->styles.get(), posLineStart, lineLength);
const int numCharsBeforeEOL = static_cast<int>(model.pdoc->LineEnd(line) - posLineStart);
const int numCharsInLine = (vstyle.viewEOL) ? lineLength : numCharsBeforeEOL;
- for (Sci::Position styleInLine = 0; styleInLine < numCharsInLine; styleInLine++) {
- const unsigned char styleByte = ll->styles[styleInLine];
- ll->styles[styleInLine] = styleByte;
- }
const unsigned char styleByteLast = (lineLength > 0) ? ll->styles[lineLength - 1] : 0;
if (vstyle.someStylesForceCase) {
for (int charInLine = 0; charInLine<lineLength; charInLine++) {