diff src/window.c @ 3678:01941fa99c91

* window.c (Fprevious_window): Use FRAME_HAS_MINIBUF_P to decide if the frame has a minibuffer; FRAME_MINIBUF_WINDOW points to the surrogate on minibufferless frames, not nil.
author Jim Blandy <jimb@redhat.com>
date Sat, 12 Jun 1993 09:31:25 +0000
parents 8fad20cc5408
children b9f27ed0228c
line wrap: on
line diff
--- a/src/window.c	Sat Jun 12 07:26:16 1993 +0000
+++ b/src/window.c	Sat Jun 12 09:31:25 1993 +0000
@@ -978,8 +978,9 @@
 #endif
 	    /* If this frame has a minibuffer, find that window first,
 	       because it is conceptually the last window in that frame.  */
-	    tem = FRAME_MINIBUF_WINDOW (XFRAME (tem));
-	    if (NILP (tem))
+	    if (FRAME_HAS_MINIBUF_P (XFRAME (tem)))
+	      tem = FRAME_MINIBUF_WINDOW (XFRAME (tem));
+	    else
 	      tem = FRAME_ROOT_WINDOW (XFRAME (tem));
 
 	    break;