emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil 157af04d2c: update evil-quit to handle tabs


From: ELPA Syncer
Subject: [nongnu] elpa/evil 157af04d2c: update evil-quit to handle tabs
Date: Wed, 18 May 2022 05:58:08 -0400 (EDT)

branch: elpa/evil
commit 157af04d2cf466e301e82b0e667c5e7203fd96a2
Author: Josh Mcguigan <joshmcg88@gmail.com>
Commit: Tom Dalziel <33435574+tomdl89@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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]