Fix recently introduced misbehavior of `quit-restore-window' (Bug#48493)
* lisp/window.el (quit-restore-window): Unconditionally call `switch-to-prev-buffer' (Bug#48493).
This commit is contained in:
parent
1276ba75eb
commit
567c31121f
1 changed files with 1 additions and 2 deletions
|
@ -5110,8 +5110,7 @@ nil means to not handle the buffer in a particular way. This
|
|||
(set-window-parameter window 'quit-restore nil)
|
||||
;; Make sure that WINDOW is no more dedicated.
|
||||
(set-window-dedicated-p window nil)
|
||||
(if prev-buffer
|
||||
(switch-to-prev-buffer window bury-or-kill)
|
||||
(unless (switch-to-prev-buffer window bury-or-kill)
|
||||
;; Delete WINDOW if there is no previous buffer (Bug#48367).
|
||||
(window--delete window nil (eq bury-or-kill 'kill)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue