aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-06-12 09:31:25 +0000
committerJim Blandy <[email protected]>1993-06-12 09:31:25 +0000
commit5e12e32f7baeae5afcd08964b72cbc99bc291cb6 (patch)
treee17b58e5915ace3f02857ba7824b4f60726f67ee /src/window.c
parentb8d9050d7304665260026121b84b783bfc43b24f (diff)
* 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.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 96606a8aa6..655515182c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -978,8 +978,9 @@ windows, eventually ending up back at the window you started with.\n\
#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;