# HG changeset patch # User Richard M. Stallman # Date 803401104 0 # Node ID 7aa9cdf40d373608c3b3b2f56c0315a8a0135aca # Parent f39e50542302946ed6047ce92bbfa282932ed335 (display_text_line): Fill in charstart for end of buffer. diff -r f39e50542302 -r 7aa9cdf40d37 src/xdisp.c --- a/src/xdisp.c Sat Jun 17 13:00:22 1995 +0000 +++ b/src/xdisp.c Sat Jun 17 14:58:24 1995 +0000 @@ -2614,7 +2614,18 @@ /* Did we hit the end of the visible region of the buffer? Stop here. */ if (pos >= ZV) - break; + { + /* Update charstarts for the end of this line. */ + /* Do nothing if off the left edge or at the right edge. */ + if (p1 >= leftmargin && p1 + 1 != endp) + { + int *p2x = &charstart[(p1 < leftmargin + ? leftmargin : p1) + - p1start]; + *p2x++ = pos; + } + break; + } #ifdef HAVE_FACES /* Did we hit a face change? Figure out what face we should