Skip to content

Fix evil-cleanup-insert-state in flyspell enabled buffer #1978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions evil-states.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down