aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-05-09 23:47:34 +0000
committernyamatongwe <unknown>2009-05-09 23:47:34 +0000
commit0ae5f25c83deabac2c8298916d1cc58888c8c796 (patch)
tree65d1f3b74acfbd10db1752592780ce8192d1f724 /src
parent6bab2caac9c8a15c1eb23f1193b04b682da99b73 (diff)
downloadscintilla-mirror-0ae5f25c83deabac2c8298916d1cc58888c8c796.tar.gz
Fixed bug #2789430 SCI_ANNOTATIONSETSTYLE with multi-line annotations
shows all text on each line.
Diffstat (limited to 'src')
-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);
}