changeset 21227:be147fbd56f1

(window_display_table): Don't look inside buffer if its nil.
author Richard M. Stallman <rms@gnu.org>
date Fri, 20 Mar 1998 05:11:27 +0000
parents c8d0df2cbd3d
children 31a2889105f0
files src/window.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Fri Mar 20 05:00:31 1998 +0000
+++ b/src/window.c	Fri Mar 20 05:11:27 1998 +0000
@@ -696,6 +696,9 @@
   tem = w->display_table;
   if (DISP_TABLE_P (tem))
     return XCHAR_TABLE (tem);
+  if (NILP (w->buffer))
+    return 0;
+
   tem = XBUFFER (w->buffer)->display_table;
   if (DISP_TABLE_P (tem))
     return XCHAR_TABLE (tem);