diff options
| author | Martin Rudalics | 2019-02-02 10:16:45 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2019-02-02 10:16:45 +0100 |
| commit | 30c09955f64815201ae9b86215fed8ea2af0ba66 (patch) | |
| tree | 2b7947a55d298a553f37fa8a37fc82d90747c762 | |
| parent | dc1d2d3c22ab91b8b52188574680a028851fbda8 (diff) | |
| download | emacs-30c09955f64815201ae9b86215fed8ea2af0ba66.tar.gz emacs-30c09955f64815201ae9b86215fed8ea2af0ba66.zip | |
Fix window splitting behavior of 'display-buffer-at-bottom'
* lisp/window.el (display-buffer-at-bottom): Never split an
arbitrary bottom window. Try to split the frame's main
window instead (Bug#33870).
| -rw-r--r-- | lisp/window.el | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lisp/window.el b/lisp/window.el index 424d0525f4e..19f84696e0f 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -7560,10 +7560,6 @@ selected frame." | |||
| 7560 | (or (and bottom-window-shows-buffer | 7560 | (or (and bottom-window-shows-buffer |
| 7561 | (window--display-buffer buffer bottom-window 'reuse alist)) | 7561 | (window--display-buffer buffer bottom-window 'reuse alist)) |
| 7562 | (and (not (frame-parameter nil 'unsplittable)) | 7562 | (and (not (frame-parameter nil 'unsplittable)) |
| 7563 | (let (split-height-threshold) | ||
| 7564 | (setq window (window--try-to-split-window bottom-window alist))) | ||
| 7565 | (window--display-buffer buffer window 'window alist)) | ||
| 7566 | (and (not (frame-parameter nil 'unsplittable)) | ||
| 7567 | (setq window (split-window-no-error (window-main-window))) | 7563 | (setq window (split-window-no-error (window-main-window))) |
| 7568 | (window--display-buffer buffer window 'window alist)) | 7564 | (window--display-buffer buffer window 'window alist)) |
| 7569 | (and (setq window bottom-window) | 7565 | (and (setq window bottom-window) |