Fix last fix in `display-buffer-record-window'.
* lisp/window.el (display-buffer-record-window): Fix last fix.
This commit is contained in:
parent
c4e0ba5155
commit
7793db6a76
1 changed files with 2 additions and 1 deletions
|
@ -5481,7 +5481,8 @@ element is BUFFER."
|
|||
(setcar quit-restore 'same)
|
||||
;; The selected-window might have changed in
|
||||
;; between (Bug#20353).
|
||||
(unless (memq (selected-window) '(window (nth 2 quit-restore)))
|
||||
(unless (or (eq window (selected-window))
|
||||
(eq window (nth 2 quit-restore)))
|
||||
(setcar (cddr quit-restore) (selected-window)))))
|
||||
;; WINDOW shows another buffer.
|
||||
(with-current-buffer (window-buffer window)
|
||||
|
|
Loading…
Add table
Reference in a new issue