Mercurial > emacs
changeset 60091:8decd369825f
(BUFFER_POS_REACHED_P): Return true if pos reached and
at end of display vector.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 15 Feb 2005 23:04:45 +0000 |
parents | 0764705c7e03 |
children | 04686828d0da |
files | src/xdisp.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Tue Feb 15 23:04:21 2005 +0000 +++ b/src/xdisp.c Tue Feb 15 23:04:45 2005 +0000 @@ -5819,11 +5819,14 @@ saved_glyph_row = it->glyph_row; it->glyph_row = NULL; -#define BUFFER_POS_REACHED_P() \ - ((op & MOVE_TO_POS) != 0 \ - && BUFFERP (it->object) \ - && IT_CHARPOS (*it) >= to_charpos \ - && it->method == next_element_from_buffer) +#define BUFFER_POS_REACHED_P() \ + ((op & MOVE_TO_POS) != 0 \ + && BUFFERP (it->object) \ + && IT_CHARPOS (*it) >= to_charpos \ + && (it->method == next_element_from_buffer || \ + (it->method == next_element_from_display_vector && \ + it->dpvec + it->current.dpvec_index + 1 >= it->dpend))) + while (1) {