Eshell: Fix error on empty ring in patch

master
Pierre Neidhardt 2019-05-28 18:31:05 +02:00
parent e0263309e5
commit 61ee3d8045
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ input."
;; because the input is not expected to be modified.
(setq input (string-trim-right input))
(when (funcall eshell-input-filter input)
(when eshell-hist-ignoredups
(when (and eshell-hist-ignoredups
(not (ring-empty-p eshell-history-ring)))
(ring-remove eshell-history-ring
(ring-member eshell-history-ring input)))
(eshell-put-history input))