mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
No need to switch when there's only one other tab
This commit is contained in:
parent
d069462360
commit
69e49c6230
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue