Mercurial > emacs
comparison src/xdisp.c @ 8684:020c4d5b685b
(display_text_line): Don't overrun the charstart area.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 02 Sep 1994 20:17:12 +0000 |
parents | 4ce43042e7ad |
children | c0a21329d9a7 |
comparison
equal
deleted
inserted
replaced
8683:0d1aada57ac9 | 8684:020c4d5b685b |
---|---|
2307 /* For all the glyphs occupied by this character, except for the | 2307 /* For all the glyphs occupied by this character, except for the |
2308 first, store -1 in charstarts. */ | 2308 first, store -1 in charstarts. */ |
2309 if (p1 != p1prev) | 2309 if (p1 != p1prev) |
2310 { | 2310 { |
2311 int *p2x = &charstart[p1prev - p1start]; | 2311 int *p2x = &charstart[p1prev - p1start]; |
2312 int *p2 = &charstart[p1 - p1start]; | 2312 int *p2 = &charstart[(p1 < endp ? p1 : endp) - p1start]; |
2313 | 2313 |
2314 /* The window's left column should always | 2314 /* The window's left column should always |
2315 contain a character position. | 2315 contain a character position. |
2316 And don't clobber anything to the left of that. */ | 2316 And don't clobber anything to the left of that. */ |
2317 if (p1prev < leftmargin) | 2317 if (p1prev < leftmargin) |