diff options
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 767a0c30d..6d760cdb5 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -887,11 +887,11 @@ void CellBuffer::ResetLineEnds() { // Reinitialize line data -- too much work to preserve plv->Init(); - const Sci::Position position = 0; + constexpr Sci::Position position = 0; const Sci::Position length = Length(); + plv->InsertText(0, length); Sci::Line lineInsert = 1; - const bool atLineStart = true; - plv->InsertText(lineInsert-1, length); + constexpr bool atLineStart = true; unsigned char chBeforePrev = 0; unsigned char chPrev = 0; for (Sci::Position i = 0; i < length; i++) { |