diff options
author | Zufu Liu <unknown> | 2019-01-06 12:06:48 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-01-06 12:06:48 +1100 |
commit | 5476eada003a1fbc182676c625b767efb2c16e6f (patch) | |
tree | aa2d89bf5f61cb359c8ff4a5b2dd14968965e50c /src/EditView.cxx | |
parent | 2e794b1ef52cb04e93f65906a266095bc8eae4f6 (diff) | |
download | scintilla-mirror-5476eada003a1fbc182676c625b767efb2c16e6f.tar.gz |
Bug [#2068]. Fix some clang-tidy warnings.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index c81733258..c97f2ae87 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -974,7 +974,7 @@ void EditView::DrawEOL(Surface *surface, const EditModel &model, const ViewStyle int alpha = SC_ALPHA_NOALPHA; if (!hideSelection) { const Sci::Position posAfterLineEnd = model.pdoc->LineStart(line + 1); - eolInSelection = (lastSubLine == true) ? model.sel.InSelectionForEOL(posAfterLineEnd) : 0; + eolInSelection = lastSubLine ? model.sel.InSelectionForEOL(posAfterLineEnd) : 0; alpha = (eolInSelection == 1) ? vsDraw.selAlpha : vsDraw.selAdditionalAlpha; } |