aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-08-13 18:10:30 +1000
committerNeil <nyamatongwe@gmail.com>2022-08-13 18:10:30 +1000
commit059594717cb36423733a0fbdee316f436d2e49a0 (patch)
treef137e2e289859092cd80f90a72007b2a4c2b48f3 /src/EditView.cxx
parent5a75bc307318c1cf04f66390299792b87f37ff97 (diff)
downloadscintilla-mirror-059594717cb36423733a0fbdee316f436d2e49a0.tar.gz
Move append of new line start into PositionCache as AddLineStart.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r--src/EditView.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index c4768a2a3..d59f99eb2 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -687,8 +687,7 @@ void EditView::LayoutLine(const EditModel &model, Surface *surface, const ViewSt
}
}
lastLineStart = lastGoodBreak;
- ll->lines++;
- ll->SetLineStart(ll->lines, static_cast<int>(lastLineStart));
+ ll->AddLineStart(lastLineStart);
startOffset = ll->positions[lastLineStart];
// take into account the space for start wrap mark and indent
startOffset += width - ll->wrapIndent;