]> git.eshelyaron.com Git - emacs.git/commitdiff
In read_minibuf_unwind don't try to select dead window (Bug#49248)
authorMartin Rudalics <rudalics@gmx.at>
Tue, 29 Jun 2021 07:21:22 +0000 (09:21 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 29 Jun 2021 07:21:22 +0000 (09:21 +0200)
* src/minibuf.c (read_minibuf_unwind): Don't try to select dead
window (Bug#49248).

src/minibuf.c

index 00069eabbe54ecbaefb3bba29d5518970fb241a8..1b842b772116ec001c25218d3598dc29898ea97b 100644 (file)
@@ -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);
     }