* lisp/tab-bar.el (tab-bar-select-tab): Fix wc-bl/wc-bbl when nil

Remove the nil-check conditionals around 'wc-bl' and 'wc-bbl' that reset
frame parameters 'buffer-list' and 'buried-buffer-list'. This ensures
originating nil values correctly propagate (bug#75935).
This commit is contained in:
shipmints 2025-01-30 07:20:34 -05:00 committed by Juri Linkov
parent 6c46e2a363
commit a5965217fc

View file

@ -1669,8 +1669,8 @@ Negative TAB-NUMBER counts tabs from the end of the tab bar."
(marker-buffer wc-point))
(goto-char wc-point))
(when wc-bl (set-frame-parameter nil 'buffer-list wc-bl))
(when wc-bbl (set-frame-parameter nil 'buried-buffer-list wc-bbl))
(set-frame-parameter nil 'buffer-list wc-bl)
(set-frame-parameter nil 'buried-buffer-list wc-bbl)
(when tab-bar-history-mode
(puthash (selected-frame)