changeset 34715:fc3693bea815

(direct_output_for_insert): Fix check for mini-window currently displaying a message.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 19 Dec 2000 13:37:19 +0000
parents 57407418de93
children 22fbc01d0621
files src/dispnew.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Tue Dec 19 13:03:33 2000 +0000
+++ b/src/dispnew.c	Tue Dec 19 13:37:19 2000 +0000
@@ -3180,8 +3180,10 @@
       || !display_completed
       /* Give up if buffer appears in two places.  */
       || buffer_shared > 1
-      /* Give up if w is mini-buffer and a message is being displayed there */
-      || (MINI_WINDOW_P (w) && !NILP (echo_area_buffer[0]))
+      /* Give up if currently displaying a message instead of the
+	 minibuffer contents.  */
+      || (EQ (selected_window, minibuf_window)
+	  && EQ (minibuf_window, echo_area_window))
       /* Give up for hscrolled mini-buffer because display of the prompt
 	 is handled specially there (see display_line).  */
       || (MINI_WINDOW_P (w) && XFASTINT (w->hscroll))