]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_string): Allow for negative hpos when clearing array.
authorKarl Heuer <kwzh@gnu.org>
Wed, 6 Apr 1994 06:49:06 +0000 (06:49 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 6 Apr 1994 06:49:06 +0000 (06:49 +0000)
src/xdisp.c

index 49d74cecf3c77df983a508703302e6b7523e1faf..3effdc3066a109193d03e85755dbc629709dcc1f 100644 (file)
@@ -3211,7 +3211,7 @@ display_string (w, vpos, string, length, hpos, truncate,
     end = desired_glyphs->glyphs[vpos] + maxcol;
 
   /* Store 0 in charstart for these columns.  */
-  for (i = hpos; i < end - p1start + hpos; i++)
+  for (i = (hpos >= 0 ? hpos : 0); i < end - p1start + hpos; i++)
     desired_glyphs->charstarts[vpos][i] = 0;
 
   if (maxcol >= 0 && mincol > maxcol)