aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 49d74cecf3c..3effdc3066a 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3211,7 +3211,7 @@ display_string (w, vpos, string, length, hpos, truncate,
3211 end = desired_glyphs->glyphs[vpos] + maxcol; 3211 end = desired_glyphs->glyphs[vpos] + maxcol;
3212 3212
3213 /* Store 0 in charstart for these columns. */ 3213 /* Store 0 in charstart for these columns. */
3214 for (i = hpos; i < end - p1start + hpos; i++) 3214 for (i = (hpos >= 0 ? hpos : 0); i < end - p1start + hpos; i++)
3215 desired_glyphs->charstarts[vpos][i] = 0; 3215 desired_glyphs->charstarts[vpos][i] = 0;
3216 3216
3217 if (maxcol >= 0 && mincol > maxcol) 3217 if (maxcol >= 0 && mincol > maxcol)