From bd5dec8e9b161582d18b11d7d5634e17835fe72a Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 6 Apr 1994 06:49:06 +0000 Subject: [PATCH] (display_string): Allow for negative hpos when clearing array. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.4.GIT