* 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'.
This commit is contained in:
Juri Linkov 2021-03-09 19:27:31 +02:00
parent 7561c01380
commit 29458ec7d2

View file

@ -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)