aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 28a0ce60e..d1aba6885 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1503,7 +1503,7 @@ void DrawStyledText(Surface *surface, ViewStyle &vs, int styleOffset, PRectangle
} else {
int style = st.style + styleOffset;
surface->DrawTextNoClip(rcText, vs.styles[style].font,
- rcText.top + vs.maxAscent, st.text, st.length,
+ rcText.top + vs.maxAscent, st.text + start, length,
vs.styles[style].fore.allocated,
vs.styles[style].back.allocated);
}