Slight modification on patch

This commit is contained in:
Benson Chu 2023-04-14 22:28:29 -05:00
parent b860f785a8
commit 33e302c88d

View file

@ -38,21 +38,14 @@
;; Handle the case when it's called in the active minibuffer.
(when (minibuffer-selected-window)
(select-window (minibuffer-selected-window)))
;; Remove window parameters that can cause problems
;; with `delete-other-windows' and `split-window'.
(unless (eq tab-bar-new-tab-choice 'clone)
(set-window-parameter nil 'window-atom nil)
(let ((side (window-parameter nil 'window-side)))
(when side
(walk-window-tree
(lambda (window)
(when (eq side (window-parameter window 'window-side))
(set-window-parameter window 'window-side nil)))
nil t))))
(let ((ignore-window-parameters t))
(let ((ignore-window-parameters t)
(window--sides-inhibit-check t))
(if (eq tab-bar-new-tab-choice 'clone)
;; Create new unique windows with the same layout
(window-state-put (window-state-get))
;; Remove window parameters that can cause problems
;; with `delete-other-windows' and `split-window'.
(set-window-parameter nil 'window-atom nil)
(delete-other-windows)
(if (eq tab-bar-new-tab-choice 'window)
;; Create new unique window from remaining window