summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2021-09-25 22:24:48 +0300
committerJuri Linkov <juri@linkov.net>2021-09-25 22:24:48 +0300
commita1a63bb794156af38ac0ed55fd453705a183ebcd (patch)
tree6e058379af97f4517858098af3303a205b758c5b /lisp
parentfcca1db9fd1eb2930f29972e7def0936c3269f1b (diff)
downloademacs-a1a63bb794156af38ac0ed55fd453705a183ebcd.tar.gz
* lisp/tab-bar.el (tab-bar-new-tab-to): Use ignore-window-parameters.
Suggested by Adam Porter <adam@alphapapa.net> in https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01758.html
Diffstat (limited to 'lisp')
-rw-r--r--lisp/tab-bar.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index d0a1b3b70bf..ceacd85971d 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1244,7 +1244,8 @@ After the tab is created, the hooks in
;; Handle the case when it's called in the active minibuffer.
(when (minibuffer-selected-window)
(select-window (minibuffer-selected-window)))
- (delete-other-windows)
+ (let ((ignore-window-parameters t))
+ (delete-other-windows))
;; Create a new window to get rid of old window parameters
;; (e.g. prev/next buffers) of old window.
(split-window) (delete-window)