Eshell: Fix error on empty ring in patch
parent
e0263309e5
commit
61ee3d8045
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue