mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix problem with empty command histories in eshell and `erase'
* lisp/eshell/em-hist.el (eshell-add-input-to-history): Protect against an empty ring (bug#48770).
This commit is contained in:
parent
3272cfa8d4
commit
2e8212a565
1 changed files with 1 additions and 1 deletions
|
|
@ -379,7 +379,7 @@ input."
|
|||
(if (eq eshell-hist-ignoredups 'erase)
|
||||
;; Remove any old occurrences of the input, and put
|
||||
;; the new one at the end.
|
||||
(progn
|
||||
(unless (ring-empty-p eshell-history-ring)
|
||||
(ring-remove eshell-history-ring
|
||||
(ring-member eshell-history-ring input))
|
||||
t)
|
||||
|
|
|
|||
Loading…
Reference in a new issue