mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 23:31:55 -08:00
* 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.
This commit is contained in:
parent
b8d9050d73
commit
5e12e32f7b
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue