]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-add-to-history): Reference to `eshell-history-ring' needed to
authorJohn Wiegley <johnw@newartisans.com>
Thu, 10 May 2001 03:28:51 +0000 (03:28 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 10 May 2001 03:28:51 +0000 (03:28 +0000)
be `eshell-history-index'.

lisp/eshell/em-hist.el

index 72dfd449763d542698a1f112c719213e5f9f398a..ef0a4b348c47b18f24c6a17b74ed0f58eba0626e 100644 (file)
@@ -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)