aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-04-06 06:49:06 +0000
committerKarl Heuer1994-04-06 06:49:06 +0000
commitbd5dec8e9b161582d18b11d7d5634e17835fe72a (patch)
treeb043b3541e4065001a0ac57a59c187c660b24789 /src
parent44d1c535188df5fe1828817a5b8fcda3caf1c9ee (diff)
downloademacs-bd5dec8e9b161582d18b11d7d5634e17835fe72a.tar.gz
emacs-bd5dec8e9b161582d18b11d7d5634e17835fe72a.zip
(display_string): Allow for negative hpos when clearing array.
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)