* lisp/tab-bar.el (tab-bar-select-tab): Fix tab-bar-history-mode.
Reset the values of 'tab-bar-history-back' and 'tab-bar-history-forward' to nil to not retain a previous tab's history after switching to another tab using window-state.
This commit is contained in:
parent
0ff82eb487
commit
6b71d0b178
1 changed files with 5 additions and 1 deletions
|
@ -1662,7 +1662,11 @@ Negative TAB-NUMBER counts tabs from the end of the tab bar."
|
|||
;; `window-state-put' fails when called in the minibuffer
|
||||
(when (window-minibuffer-p)
|
||||
(select-window (get-mru-window)))
|
||||
(window-state-put ws nil 'safe)))
|
||||
(window-state-put ws nil 'safe)
|
||||
|
||||
(when tab-bar-history-mode
|
||||
(puthash (selected-frame) nil tab-bar-history-back)
|
||||
(puthash (selected-frame) nil tab-bar-history-forward))))
|
||||
|
||||
(when tab-bar-select-restore-context
|
||||
(window-point-context-use))
|
||||
|
|
Loading…
Add table
Reference in a new issue