diff options
author | Juri Linkov <juri@linkov.net> | 2023-05-19 21:04:50 +0300 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2023-05-19 21:04:50 +0300 |
commit | 8e61d23f71e75225e1e48a572db76c2845a4201a (patch) | |
tree | f1ded942878cada787ef9c997046f7c3c032850a /lisp/tab-bar.el | |
parent | 459d08c7fe7f723b3cefe71fa50bbe4481f66995 (diff) | |
download | emacs-8e61d23f71e75225e1e48a572db76c2845a4201a.tar.gz emacs-8e61d23f71e75225e1e48a572db76c2845a4201a.tar.bz2 emacs-8e61d23f71e75225e1e48a572db76c2845a4201a.zip |
Split windows horizontally in places that use split to create a new window.
* lisp/tab-bar.el (tab-bar-new-tab-to):
* lisp/window.el (window-state-put):
To create a new window, split horizontally instead of vertically.
Use 'window-safe-min-width' for the SIZE arg of 'split-window'.
(bug#62592)
Diffstat (limited to 'lisp/tab-bar.el')
-rw-r--r-- | lisp/tab-bar.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index ab428b81631..73f2ff77c50 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1568,7 +1568,8 @@ After the tab is created, the hooks in (window-state-put (window-state-get))) ;; Create a new window to get rid of old window parameters ;; (e.g. prev/next buffers) of old window. - (split-window) (delete-window)))) + (split-window nil window-safe-min-width t) + (delete-window)))) (let ((buffer (if (and (functionp tab-bar-new-tab-choice) |