diff options
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 3 |
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; |