Fix evil change/delete operators in eshell buffers

evil-{change,delete}{,-line} now jump to the prompt before trying to
modify the buffer.
This commit is contained in:
Henrik Lissner 2018-05-26 18:55:37 +02:00
parent 4e2beb8b7e
commit 177bf2a9de
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 26 additions and 25 deletions

View file

@ -50,6 +50,8 @@ redefines its keys every time `eshell-mode' is enabled."
(map! :map eshell-mode-map
:n "c" #'+eshell/evil-change
:n "C" #'+eshell/evil-change-line
:n "d" #'+eshell/evil-delete
:n "D" #'+eshell/evil-delete-line
:i "C-d" #'+eshell/quit-or-delete-char
:i "C-p" #'eshell-previous-input
:i "C-n" #'eshell-next-input