aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 2fcd4b08bf0..8565968589e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2614,7 +2614,18 @@ display_text_line (w, start, vpos, hpos, taboffset)
2614 /* Did we hit the end of the visible region of the buffer? 2614 /* Did we hit the end of the visible region of the buffer?
2615 Stop here. */ 2615 Stop here. */
2616 if (pos >= ZV) 2616 if (pos >= ZV)
2617 break; 2617 {
2618 /* Update charstarts for the end of this line. */
2619 /* Do nothing if off the left edge or at the right edge. */
2620 if (p1 >= leftmargin && p1 + 1 != endp)
2621 {
2622 int *p2x = &charstart[(p1 < leftmargin
2623 ? leftmargin : p1)
2624 - p1start];
2625 *p2x++ = pos;
2626 }
2627 break;
2628 }
2618 2629
2619#ifdef HAVE_FACES 2630#ifdef HAVE_FACES
2620 /* Did we hit a face change? Figure out what face we should 2631 /* Did we hit a face change? Figure out what face we should