branch: elpa/evil
commit b00018bf550fbbe1b55165579e6ede973d70f53b
Author: Tom Dalziel <[email protected]>
Commit: GitHub <[email protected]>
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)