aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.el
diff options
context:
space:
mode:
authorFrank Fischer <frank.fischer@mathematik.tu-chemnitz.de>2012-11-25 10:22:34 +0100
committerFrank Fischer <frank.fischer@mathematik.tu-chemnitz.de>2012-11-25 10:22:34 +0100
commit8b542f26176d469ce201a6756e0294a3ba3d3828 (patch)
tree2343d9d5d1232a12908af6eb8b690aa20e37709a /evil-commands.el
parentbd737905bec4928d3ee443bcf5c18b395ae34f09 (diff)
Prefix and register command to not stop `evil-execute-in-normal-state'.
Prefix argument and register-read commands belong to the next commands and should not stop normal-state execution. This fixes #231.
Diffstat (limited to 'evil-commands.el')
-rw-r--r--evil-commands.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/evil-commands.el b/evil-commands.el
index 799a4e8..dbf0ff1 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -3404,7 +3404,15 @@ if the previous state was Emacs state."
(defun evil-execute-in-normal-state ()
"Execute the next command in Normal state."
(interactive)
- (evil-delay '(not (eq this-command #'evil-execute-in-normal-state))
+ (evil-delay '(not (memq this-command
+ '(evil-execute-in-normal-state
+ evil-use-register
+ digit-argument
+ negative-argument
+ universal-argument
+ universal-argument-minus
+ universal-argument-more
+ universal-argument-other-key)))
`(progn
(evil-change-to-previous-state)
(setq evil-move-cursor-back ',evil-move-cursor-back))