Return whether the tab was really closed

This commit is contained in:
Benson Chu 2026-01-27 14:50:13 -06:00
parent 56ff85b49a
commit 781190964a

View file

@ -74,9 +74,10 @@
(defun close-tab-switch () (defun close-tab-switch ()
(interactive) (interactive)
(let ((old-name (alist-get 'name (tab-bar--current-tab)))) (let ((old-name (alist-get 'name (tab-bar--current-tab))))
(when (y-or-n-p (format "Close tab \"%s\"? " (aprog1 (y-or-n-p (format "Close tab \"%s\"? "
old-name)) old-name))
(tab-bar-close-tab)))) (when it
(tab-bar-close-tab)))))
(defun tab-bar-report () (defun tab-bar-report ()
(interactive) (interactive)