branch: elpa/evil commit 157af04d2cf466e301e82b0e667c5e7203fd96a2 Author: Josh Mcguigan <joshmc...@gmail.com> Commit: Tom Dalziel <33435574+tomd...@users.noreply.github.com>
update evil-quit to handle tabs --- evil-commands.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/evil-commands.el b/evil-commands.el index d6b2e622af..4cebc879b3 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -3329,7 +3329,7 @@ for the last window in each frame." wins)))) (evil-define-command evil-quit (&optional force) - "Closes the current window, current frame, Emacs. + "Closes the current window, current frame, current tab, Emacs. If the current frame belongs to some client the client connection is closed." :repeat nil @@ -3347,9 +3347,12 @@ is closed." (condition-case nil (delete-frame) (error - (if force - (kill-emacs) - (save-buffers-kill-emacs)))))))) + (condition-case nil + (tab-bar-close-tab) + (error + (if force + (kill-emacs) + (save-buffers-kill-emacs)))))))))) (evil-define-command evil-quit-all (&optional bang) "Exits Emacs, asking for saving."