* lisp/tab-bar.el (tab-bar-move-tab-to-frame): Delete frame with last tab.

This commit is contained in:
Juri Linkov 2021-09-29 22:40:20 +03:00
parent ab1e11fe79
commit fd244c9e46

View file

@ -1201,6 +1201,7 @@ Interactively, ARG selects the ARGth different frame to move to."
(nthcdr to-index to-tabs))
(with-selected-frame from-frame
(let ((inhibit-message t) ; avoid message about deleted tab
(tab-bar-close-last-tab-choice 'delete-frame)
tab-bar-closed-tabs)
(tab-bar-close-tab from-number)))
(tab-bar-tabs-set to-tabs to-frame)