From c0cf923b0ad6f72eafb58057f4df245bca3da658 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 3 Apr 2022 19:51:46 +0300 Subject: [PATCH] * lisp/tab-bar.el (tab-bar-undo-close-tab): Update tab-bar-lines (bug#54684) --- lisp/tab-bar.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index cf1cca4af3f..c4d450fe2a5 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1659,9 +1659,10 @@ happens interactively)." (setq index (max 0 (min index (length tabs)))) (cl-pushnew tab (nthcdr index tabs)) (when (eq index 0) - ;; pushnew handles the head of tabs but not frame-parameter + ;; `pushnew' handles the head of tabs but not frame-parameter (tab-bar-tabs-set tabs)) - (tab-bar-select-tab (1+ index)))) + (tab-bar-select-tab (1+ index))) + (tab-bar--update-tab-bar-lines)) (message "No more closed tabs to undo"))) -- 2.30.2