Eshell: Require subr-x for string-trim in eshell-append-region-to-command-line
parent
f3820091f0
commit
4392607e8e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue