From 9c0eec4ed86713519819b2e33dc3fff23f0e5f3d Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Fri, 19 Aug 2022 15:06:38 +0000 Subject: [PATCH] * src/window.c (select_window): Fix assert for buffer = non-active minibuffer --- src/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 2576b66a181..35ec2a1f908 100644 --- a/src/window.c +++ b/src/window.c @@ -554,7 +554,9 @@ select_window (Lisp_Object window, Lisp_Object norecord, frame is active. */ Fselect_frame (frame, norecord); /* Fselect_frame called us back so we've done all the work already. */ - eassert (EQ (window, selected_window)); + eassert (EQ (window, selected_window) + || (EQ (window, f->minibuffer_window) + && NILP (Fminibufferp (XWINDOW (window)->contents, Qt)))); return window; } else -- 2.39.2