Mercurial > emacs
changeset 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 | 0d1aada57ac9 |
children | 5952e691b975 |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Thu Sep 01 21:18:15 1994 +0000 +++ b/src/xdisp.c Fri Sep 02 20:17:12 1994 +0000 @@ -2309,7 +2309,7 @@ if (p1 != p1prev) { int *p2x = &charstart[p1prev - p1start]; - int *p2 = &charstart[p1 - p1start]; + int *p2 = &charstart[(p1 < endp ? p1 : endp) - p1start]; /* The window's left column should always contain a character position.