summaryrefslogtreecommitdiff
path: root/lisp/tab-bar.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-04-03 19:51:46 +0300
committerJuri Linkov <juri@linkov.net>2022-04-03 19:51:46 +0300
commitc0cf923b0ad6f72eafb58057f4df245bca3da658 (patch)
treeeeddbc973e9985985c461a0f822fcb62c30d046b /lisp/tab-bar.el
parent3c6524140b7a5e68875541781c3c48853e763dc3 (diff)
downloademacs-c0cf923b0ad6f72eafb58057f4df245bca3da658.tar.gz
* lisp/tab-bar.el (tab-bar-undo-close-tab): Update tab-bar-lines (bug#54684)
Diffstat (limited to 'lisp/tab-bar.el')
-rw-r--r--lisp/tab-bar.el5
1 files 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")))