summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2015-04-22 15:02:22 +0200
committerMartin Rudalics <rudalics@gmx.at>2015-04-22 15:02:22 +0200
commit7793db6a762112944ab05b1c03884632bd9d91cc (patch)
treefd02fb0767c524a3a21124e4aec8a97ffa42bc21 /lisp/window.el
parentc4e0ba51552ec773003f5f81a09132d729f812cc (diff)
downloademacs-7793db6a762112944ab05b1c03884632bd9d91cc.tar.gz
Fix last fix in `display-buffer-record-window'.
* lisp/window.el (display-buffer-record-window): Fix last fix.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 07e477d7799..32467c393dd 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -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)