aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2001-05-10 03:28:51 +0000
committerJohn Wiegley2001-05-10 03:28:51 +0000
commit734f7362aa1f298694b1a7d54d1be8008b1f7d24 (patch)
treeae337457ae046a8ea68ddbf4b747226006eed89c
parentd089e2995b65b11ab06fdd5b6328b4f611f3e7fb (diff)
downloademacs-734f7362aa1f298694b1a7d54d1be8008b1f7d24.tar.gz
emacs-734f7362aa1f298694b1a7d54d1be8008b1f7d24.zip
(eshell-add-to-history): Reference to `eshell-history-ring' needed to
be `eshell-history-index'.
-rw-r--r--lisp/eshell/em-hist.el2
1 files changed, 1 insertions, 1 deletions
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."
374 (ring-empty-p eshell-history-ring) 374 (ring-empty-p eshell-history-ring)
375 (not (string-equal (eshell-get-history 0) input)))) 375 (not (string-equal (eshell-get-history 0) input))))
376 (eshell-put-history input)) 376 (eshell-put-history input))
377 (setq eshell-save-history-index eshell-history-ring) 377 (setq eshell-save-history-index eshell-history-index)
378 (setq eshell-history-index nil)))) 378 (setq eshell-history-index nil))))
379 379
380(defun eshell-read-history (&optional filename silent) 380(defun eshell-read-history (&optional filename silent)