branch: elpa/evil
commit b06f644bdb5b06c6ac46c11b0259f15ac9ffd5da
Author: hiecaq <[email protected]>
Commit: Tom Dalziel <[email protected]>
Fix evil-cleanup-insert-state in flyspell enabled buffer
---
evil-states.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/evil-states.el b/evil-states.el
index 1e09ae73fbb..499154e2faf 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)