No need to switch when there's only one other tab

This commit is contained in:
Benson Chu 2020-02-04 14:18:30 -06:00
parent d069462360
commit 69e49c6230

View file

@ -48,7 +48,8 @@
(when (y-or-n-p (format "Close tab \"%s\"? "
old-name))
(tab-bar-close-tab)
(switch-or-create-tab))))
(when (<= 2 (length (funcall tab-bar-tabs-function)))
(switch-or-create-tab)))))
(defun tab-bar-report ()
(interactive)