changeset 34851:452349a9192a

(init_from_display_pos): Pop until the iterator's stack is empty; there may be frames for stretch or images on the stack.
author Gerd Moellmann <gerd@gnu.org>
date Sat, 23 Dec 2000 19:23:02 +0000
parents 70de0a250cc9
children 981f3cedd760
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Dec 23 17:22:45 2000 +0000
+++ b/src/xdisp.c	Sat Dec 23 19:23:02 2000 +0000
@@ -1765,7 +1765,8 @@
 	 POS, make sure to pop the iterator because it will be in
 	 front of that overlay string.  When POS is ZV, we've thereby
 	 also ``processed'' overlay strings at ZV.  */
-      pop_it (it);
+      while (it->sp)
+	pop_it (it);
       it->current.overlay_string_index = -1;
       it->method = next_element_from_buffer;
       if (CHARPOS (pos->pos) == ZV)