Skip to content

Commit

Permalink
Fix double insert of first key in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Mar 29, 2015
1 parent c410d7e commit 7600904
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions evil-escape.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; Keywords: convenience editing evil
;; Created: 22 Oct 2014
;; Version: 2.16
;; Version: 2.17
;; Package-Requires: ((emacs "24") (evil "1.0.9"))
;; URL: https://github.com/syl20bnr/evil-escape

Expand Down Expand Up @@ -363,7 +363,8 @@ DELETE-FUNC when calling CALLBACK. "
(setq overriding-terminal-local-map nil)
(call-interactively callback))
(t ; otherwise
(evil-escape--setup-passthrough from map)
(unless insert-func
(evil-escape--setup-passthrough from map))
(setq unread-command-events
(append unread-command-events (list evt))))))))

Expand Down

0 comments on commit 7600904

Please sign in to comment.