From: Martin Rudalics Date: Tue, 29 Jun 2021 07:21:22 +0000 (+0200) Subject: In read_minibuf_unwind don't try to select dead window (Bug#49248) X-Git-Tag: emacs-28.0.90~2010 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b4043833cf2e846d41e714e2c72372b60d0d594;p=emacs.git In read_minibuf_unwind don't try to select dead window (Bug#49248) * src/minibuf.c (read_minibuf_unwind): Don't try to select dead window (Bug#49248). --- diff --git a/src/minibuf.c b/src/minibuf.c index 00069eabbe5..1b842b77211 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1210,7 +1210,7 @@ read_minibuf_unwind (void) WINDOW_FRAME (XWINDOW (minibuf_window)))) Fset_frame_selected_window (selected_frame, prev, Qnil); } - else + else if (WINDOW_LIVE_P (calling_window)) Fset_frame_selected_window (calling_frame, calling_window, Qnil); }