changeset 12293:7aa9cdf40d37

(display_text_line): Fill in charstart for end of buffer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Jun 1995 14:58:24 +0000
parents f39e50542302
children 3631443c706e
files src/xdisp.c
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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