Skip to content

Commit

Permalink
Revert insert/delete functions
Browse files Browse the repository at this point in the history
They are used to prevent the first key from lagging due to the delay
or the read event.
  • Loading branch information
syl20bnr committed Sep 27, 2015
1 parent fd633a9 commit 8f5b4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evil-escape.el
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ with a key sequence."
(with-demoted-errors "evil-escape: Error %S"
(when (evil-escape-p)
(let* ((modified (buffer-modified-p))
;; (inserted (evil-escape--insert))
(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))
(when inserted (evil-escape--delete))
(set-buffer-modified-p modified)
(cond
((and (integerp evt)
Expand Down

0 comments on commit 8f5b4cc

Please sign in to comment.