From: Karl Heuer Date: Wed, 6 Apr 1994 06:49:06 +0000 (+0000) Subject: (display_string): Allow for negative hpos when clearing array. X-Git-Tag: emacs-19.34~9148 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd5dec8e9b161582d18b11d7d5634e17835fe72a;p=emacs.git (display_string): Allow for negative hpos when clearing array. --- 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, 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)