summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ibuffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index dd2687c4d8c..609524ccd20 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -2341,7 +2341,8 @@ FORMATS is the value to use for `ibuffer-formats'.
(setq other-window-p t))
(let ((buf (get-buffer-create (or name "*Ibuffer*"))))
(if other-window-p
- (funcall (if noselect (lambda (buf) (display-buffer buf t)) #'pop-to-buffer) buf)
+ (or (and noselect (display-buffer buf t))
+ (pop-to-buffer buf t))
(funcall (if noselect #'display-buffer #'switch-to-buffer) buf))
(with-current-buffer buf
(save-selected-window