From 6b4043833cf2e846d41e714e2c72372b60d0d594 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Tue, 29 Jun 2021 09:21:22 +0200 Subject: [PATCH] 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). --- src/minibuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2