tools/eshell: remove unused lexical var

This commit is contained in:
Henrik Lissner 2018-04-02 06:17:49 -04:00
parent 8e7f97167a
commit cc658beb9e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -14,11 +14,7 @@
"Like `evil-change' but will not delete/copy the prompt." "Like `evil-change' but will not delete/copy the prompt."
(interactive "<R><x><y>") (interactive "<R><x><y>")
(let ((delete-func (or delete-func #'evil-delete)) (let ((delete-func (or delete-func #'evil-delete))
(nlines (1+ (evil-count-lines beg end))) (nlines (1+ (evil-count-lines beg end))))
(opoint (save-excursion
(goto-char beg)
(evil-collection-eshell-next-prompt)
(point))))
(unless (eq evil-want-fine-undo t) (unless (eq evil-want-fine-undo t)
(evil-start-undo-step)) (evil-start-undo-step))
(when (get-text-property beg 'read-only) (when (get-text-property beg 'read-only)