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

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

[nongnu] elpa/evil b00018b 2/2: Don't abort ex if choosing completion wi


From: ELPA Syncer
Subject: [nongnu] elpa/evil b00018b 2/2: Don't abort ex if choosing completion with mouse (#1553)
Date: Sat, 11 Dec 2021 12:57:52 -0500 (EST)

branch: elpa/evil
commit b00018bf550fbbe1b55165579e6ede973d70f53b
Author: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Don't abort ex if choosing completion with mouse (#1553)
    
    Fixes #1551
---
 evil-ex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/evil-ex.el b/evil-ex.el
index 2a13489..bb7cd46 100644
--- a/evil-ex.el
+++ b/evil-ex.el
@@ -221,7 +221,8 @@ Otherwise behaves like `delete-backward-char'."
 
 (defun evil-ex-abort ()
   "Cancel ex state when another buffer is selected."
-  (unless (minibufferp)
+  (unless (or (minibufferp)
+              (memq this-command '(mouse-drag-region choose-completion)))
     (abort-recursive-edit)))
 
 (defun evil-ex-command-window-execute (config result)



reply via email to

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