]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_text_line): Fill in charstart for end of buffer.
authorRichard M. Stallman <rms@gnu.org>
Sat, 17 Jun 1995 14:58:24 +0000 (14:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 17 Jun 1995 14:58:24 +0000 (14:58 +0000)
src/xdisp.c

index 2fcd4b08bf0b5f8c0045c1aeb6e0a8a3b0997f24..8565968589e2f673b0c72f98ab1d9c7a6a08ce8d 100644 (file)
@@ -2614,7 +2614,18 @@ display_text_line (w, start, vpos, hpos, taboffset)
          /* 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