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 ()
(interactive)
(let ((old-name (alist-get 'name (tab-bar--current-tab))))
(when (y-or-n-p (format "Close tab \"%s\"? "
old-name))
(tab-bar-close-tab))))
(aprog1 (y-or-n-p (format "Close tab \"%s\"? "
old-name))
(when it
(tab-bar-close-tab)))))
(defun tab-bar-report ()
(interactive)