diff options
| author | Kim F. Storm | 2005-02-15 23:04:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-02-15 23:04:45 +0000 |
| commit | d02d0705b396b0deed399af01a370e8c9de6f7e6 (patch) | |
| tree | 964ebdbc60bfe96c80865c3cf290b7b91e591a0e /src | |
| parent | 86e6158692dfe644fcd499585e68f01df14fa614 (diff) | |
| download | emacs-d02d0705b396b0deed399af01a370e8c9de6f7e6.tar.gz emacs-d02d0705b396b0deed399af01a370e8c9de6f7e6.zip | |
(BUFFER_POS_REACHED_P): Return true if pos reached and
at end of display vector.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index c7f446def55..c0489aa5ecb 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5819,11 +5819,14 @@ move_it_in_display_line_to (it, to_charpos, to_x, op) | |||
| 5819 | saved_glyph_row = it->glyph_row; | 5819 | saved_glyph_row = it->glyph_row; |
| 5820 | it->glyph_row = NULL; | 5820 | it->glyph_row = NULL; |
| 5821 | 5821 | ||
| 5822 | #define BUFFER_POS_REACHED_P() \ | 5822 | #define BUFFER_POS_REACHED_P() \ |
| 5823 | ((op & MOVE_TO_POS) != 0 \ | 5823 | ((op & MOVE_TO_POS) != 0 \ |
| 5824 | && BUFFERP (it->object) \ | 5824 | && BUFFERP (it->object) \ |
| 5825 | && IT_CHARPOS (*it) >= to_charpos \ | 5825 | && IT_CHARPOS (*it) >= to_charpos \ |
| 5826 | && it->method == next_element_from_buffer) | 5826 | && (it->method == next_element_from_buffer || \ |
| 5827 | (it->method == next_element_from_display_vector && \ | ||
| 5828 | it->dpvec + it->current.dpvec_index + 1 >= it->dpend))) | ||
| 5829 | |||
| 5827 | 5830 | ||
| 5828 | while (1) | 5831 | while (1) |
| 5829 | { | 5832 | { |