Commit f4ef1a1f authored by Tino Calancha's avatar Tino Calancha Committed by Glenn Morris
Browse files

* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)

parent e686f476
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment