narf:exit-mode-maybe (jk): don't affect undo history
This commit is contained in:
parent
9845101db9
commit
7c37162d9b
1 changed files with 17 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue