Eshell: Require subr-x for string-trim in eshell-append-region-to-command-line

master
Pierre Neidhardt 2019-02-05 22:44:45 +01:00
parent f3820091f0
commit 4392607e8e
1 changed files with 1 additions and 0 deletions

View File

@ -322,6 +322,7 @@ See `eshell' for the numeric prefix ARG."
;; Misc.
(defun ambrevar/eshell-append-region-to-command-line (begin end)
(interactive "r")
(require 'subr-x) ; For `string-trim'.
(save-mark-and-excursion
(let ((string (buffer-substring-no-properties begin end)))
(setq string (string-trim string))