diff options
author | Zufu Liu <unknown> | 2019-04-25 10:53:03 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-04-25 10:53:03 +1000 |
commit | 47d3e9c565bbc33794214a33983e455d8c93f584 (patch) | |
tree | c077c3de16717e49bd3a115c125b5ddc2fe7b11d /src | |
parent | 4bdc8cf08ec39e768b3dfab6856c6e29e1d3bb61 (diff) | |
download | scintilla-mirror-47d3e9c565bbc33794214a33983e455d8c93f584.tar.gz |
Backport: Bug [#1238]. Removed redundant loop.
Backport of changeset 7471:40f1581baf9e.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index fa01a0385..7b585c553 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -426,10 +426,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++) { |