comparison src/xdisp.c @ 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 ca0c6002fadf
children f513e6d34868
comparison
equal deleted inserted replaced
60090:0764705c7e03 60091:8decd369825f
5817 5817
5818 /* Don't produce glyphs in produce_glyphs. */ 5818 /* Don't produce glyphs in produce_glyphs. */
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 {
5830 int x, i, ascent = 0, descent = 0; 5833 int x, i, ascent = 0, descent = 0;
5831 5834