Mercurial > emacs
changeset 6704:a00c6f4747be
(display_string): Allow for negative hpos when clearing array.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 06 Apr 1994 06:49:06 +0000 |
parents | 5877a8b11f0c |
children | 301d0609754b |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Apr 06 06:06:51 1994 +0000 +++ b/src/xdisp.c Wed Apr 06 06:49:06 1994 +0000 @@ -3211,7 +3211,7 @@ 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)