aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-06-10 09:33:22 +1000
committerNeil <nyamatongwe@gmail.com>2021-06-10 09:33:22 +1000
commit6d353d5ced87c554bc1b9abe194f18d585a0aeef (patch)
treee3ac6c084d40c8815952ec7076430db750ef6c92 /src/EditView.cxx
parent7ff41a39e0f5d91ccbeb2a5f342daba84785a892 (diff)
downloadscintilla-mirror-6d353d5ced87c554bc1b9abe194f18d585a0aeef.tar.gz
Don't divide input text into segments in PositionCache::MeasureWidths as text
should already have been segmented into reasonable lengths. The Document argument is no longer needed.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r--src/EditView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index 80edd31c6..5d69c1345 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -489,7 +489,7 @@ void EditView::LayoutLine(const EditModel &model, Surface *surface, const ViewSt
ll->positions[ts.start + 1] = vstyle.styles[ll->styles[ts.start]].spaceWidth;
} else {
posCache.MeasureWidths(surface, vstyle, ll->styles[ts.start], &ll->chars[ts.start],
- ts.length, &ll->positions[ts.start + 1], model.pdoc);
+ ts.length, &ll->positions[ts.start + 1]);
}
}
lastSegItalics = (!ts.representation) && ((ll->chars[ts.end() - 1] != ' ') && vstyle.styles[ll->styles[ts.start]].italic);