From 734f7362aa1f298694b1a7d54d1be8008b1f7d24 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 10 May 2001 03:28:51 +0000 Subject: [PATCH] (eshell-add-to-history): Reference to `eshell-history-ring' needed to be `eshell-history-index'. --- lisp/eshell/em-hist.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 72dfd449763..ef0a4b348c4 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -374,7 +374,7 @@ input." (ring-empty-p eshell-history-ring) (not (string-equal (eshell-get-history 0) input)))) (eshell-put-history input)) - (setq eshell-save-history-index eshell-history-ring) + (setq eshell-save-history-index eshell-history-index) (setq eshell-history-index nil)))) (defun eshell-read-history (&optional filename silent) -- 2.39.5