aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--evil-states.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/evil-states.el b/evil-states.el
index 1e09ae7..499154e 100644
--- a/evil-states.el
+++ b/evil-states.el
@@ -147,12 +147,13 @@ commands opening a new line."
"Called when Insert or Replace state is about to be exited.
Handles the repeat-count of the insertion command."
(when evil-insert-count
- (dotimes (_ (1- evil-insert-count))
- (when evil-insert-lines
- (evil-insert-newline-below)
- (when evil-auto-indent
- (indent-according-to-mode)))
- (evil-execute-repeat-info (cdr evil-insert-repeat-info))))
+ (let (pre-command-hook post-command-hook)
+ (dotimes (_ (1- evil-insert-count))
+ (when evil-insert-lines
+ (evil-insert-newline-below)
+ (when evil-auto-indent
+ (indent-according-to-mode)))
+ (evil-execute-repeat-info (cdr evil-insert-repeat-info)))))
(when evil-insert-vcount
(let ((buffer-invisibility-spec
(if (listp buffer-invisibility-spec)