changeset 35848:9ed4465d634c

(get_next_display_element): Fix case of empty display table entry.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 02 Feb 2001 11:51:06 +0000
parents 83b8f5ad1f97
children f9f8d1580036
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Feb 02 07:57:56 2001 +0000
+++ b/src/xdisp.c	Fri Feb 02 11:51:06 2001 +0000
@@ -3877,9 +3877,13 @@
 		  it->dpend = v->contents + v->size;
 		  it->current.dpvec_index = 0;
 		  it->method = next_element_from_display_vector;
+		  success_p = get_next_display_element (it);
 		}
-
-	      success_p = get_next_display_element (it);
+	      else
+		{
+		  set_iterator_to_next (it, 0);
+		  success_p = get_next_display_element (it);
+		}
 	    }
 
 	  /* Translate control characters into `\003' or `^C' form.