diff options
| author | Richard M. Stallman | 1995-06-17 14:58:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-17 14:58:24 +0000 |
| commit | eff87c2c1ddadddd7b177d91a59be6a218b8bf37 (patch) | |
| tree | cdaa1b356795788e760515ba9b32eb2f357eeab8 | |
| parent | 22bf061573539dff9e17dac63afc0c3c4e620099 (diff) | |
| download | emacs-eff87c2c1ddadddd7b177d91a59be6a218b8bf37.tar.gz emacs-eff87c2c1ddadddd7b177d91a59be6a218b8bf37.zip | |
(display_text_line): Fill in charstart for end of buffer.
| -rw-r--r-- | src/xdisp.c | 13 |
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 |