Commit 02e05304 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

In display-buffer-below-selected reuse window below selected if it shows...

In display-buffer-below-selected reuse window below selected if it shows buffer already (Bug#18181).

* window.el (display-buffer-below-selected): Restore original
behavior if buffer is already displayed in the window below the
selected one (Bug#18181).
parent c70e7e18
2014-08-09 Martin Rudalics <rudalics@gmx.at>
* window.el (display-buffer-below-selected): Restore original
behavior if buffer is already displayed in the window below the
selected one (Bug#18181).
2014-08-08 Stefan Monnier <monnier@iro.umontreal.ca>
 
* mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
......
......@@ -6373,7 +6373,10 @@ again with `display-buffer-pop-up-window'."
This either splits the selected window or reuses the window below
the selected one."
(let (window)
(or (and (not (frame-parameter nil 'unsplittable))
(or (and (setq window (window-in-direction 'below))
(eq buffer (window-buffer window))
(window--display-buffer buffer window 'reuse alist))
(and (not (frame-parameter nil 'unsplittable))
(let ((split-height-threshold 0)
split-width-threshold)
(setq window (window--try-to-split-window (selected-window) alist)))
......
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