Skip to content

Commit

Permalink
don't redisplay and font locking while doing evil-escape
Browse files Browse the repository at this point in the history
  • Loading branch information
kiennq committed May 2, 2020
1 parent f4e9116 commit 17d83aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions evil-escape.el
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,15 @@ with a key sequence."
"evil-escape pre-command hook."
(with-demoted-errors "evil-escape: Error %S"
(when (evil-escape-p)
(let* ((modified (buffer-modified-p))
(let* ((inhibit-redisplay t)
(fontification-functions nil)
(modified (buffer-modified-p))
(inserted (evil-escape--insert))
(fkey (elt evil-escape-key-sequence 0))
(skey (elt evil-escape-key-sequence 1))
(evt (read-event nil nil evil-escape-delay)))
(when inserted (evil-escape--delete))
(set-buffer-modified-p modified)
(restore-buffer-modified-p modified)
(cond
((and (characterp evt)
(or (and (equal (this-command-keys) (evil-escape--first-key))
Expand Down

0 comments on commit 17d83aa

Please sign in to comment.