aboutsummaryrefslogtreecommitdiff
path: root/evil-integration.el
diff options
context:
space:
mode:
authorVegard Øye <vegard_oye@hotmail.com>2012-01-29 13:19:48 +0100
committerVegard Øye <vegard_oye@hotmail.com>2012-01-29 13:19:48 +0100
commitb9bf41600820f20c3878667becc69ee157366e46 (patch)
treef62be957f50d4eba392fb6064ceb640cb2b68f70 /evil-integration.el
parent8742ccd11d7724a0828d9862cb703a0c88d6e462 (diff)
Add :suppress-operator t to a couple of commands
This property prevents the command from being applied to an operator. Also fix an old bug in `evil-keypress-parser' where the input was unnecessarily converted from a symbol to a character.
Diffstat (limited to 'evil-integration.el')
-rw-r--r--evil-integration.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/evil-integration.el b/evil-integration.el
index d1b06b9..fec4036 100644
--- a/evil-integration.el
+++ b/evil-integration.el
@@ -31,8 +31,11 @@
(evil-set-type #'previous-line 'line)
(evil-set-type #'next-line 'line)
+(dolist (cmd '(keyboard-quit keyboard-escape-quit))
+ (evil-set-command-property cmd :suppress-operator t))
+
(dolist (cmd evil-visual-newline-commands)
- (evil-add-command-properties cmd :exclude-newline t))
+ (evil-set-command-property cmd :exclude-newline t))
(dolist (map evil-overriding-maps)
(eval-after-load (cdr map)