narf:exit-mode-maybe (jk): don't affect undo history

This commit is contained in:
Henrik Lissner 2015-12-10 16:10:51 -05:00
parent 9845101db9
commit 7c37162d9b

View file

@ -246,9 +246,10 @@ to abort the minibuffer."
(evil-define-command narf:exit-mode-maybe ()
"Exits insert/replace mode using jk without the momentary pause caused by
key-chord-define."
:repeat change
:repeat nil
(interactive)
(let ((modified (buffer-modified-p)))
(let ((modified (buffer-modified-p))
(buffer-undo-list t))
(call-interactively 'self-insert-command)
(let ((evt (read-event nil nil 0.4)))
(cond