From 29458ec7d2843baa725f9b613d0e935df3a61301 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 9 Mar 2021 19:27:31 +0200 Subject: [PATCH] * lisp/tab-bar.el (tab-bar-select-tab): Set window-state-put WINDOW arg to nil WINDOW arg nil will always create a new window regardless of the value returned by 'frame-root-window' that is nondeterministic - it returns an internal window when there are more than 1 window on the frame/tab, otherwise it returns a live window that was reused between different tabs (bug#46904) (tab-prefix-map): Bind "u" to 'tab-undo'. --- lisp/tab-bar.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 917b5e496b8..2f97bd4eaf9 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -766,7 +766,7 @@ ARG counts from 1." tab-bar-history-forward))) (ws - (window-state-put ws (frame-root-window (selected-frame)) 'safe))) + (window-state-put ws nil 'safe))) (setq tab-bar-history-omit t) @@ -1777,6 +1777,7 @@ When `switch-to-buffer-obey-display-actions' is non-nil, (define-key tab-prefix-map "2" 'tab-new) (define-key tab-prefix-map "1" 'tab-close-other) (define-key tab-prefix-map "0" 'tab-close) +(define-key tab-prefix-map "u" 'tab-undo) (define-key tab-prefix-map "o" 'tab-next) (define-key tab-prefix-map "O" 'tab-previous) (define-key tab-prefix-map "m" 'tab-move) -- 2.39.2