From e2154d9437fd57a6ba2eb08fe1d1e349ce1283a5 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 1 Dec 2011 17:30:12 -0500 Subject: [PATCH] Tweak previous em-hist.el change. --- lisp/eshell/em-hist.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 975f1b17143..5ae419f7ba9 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -263,8 +263,9 @@ element, regardless of any text on the command line. In that case, (or eshell-history-size (let ((hsize (getenv "HISTSIZE"))) (setq eshell-history-size - (if (and (> (length hsize) 0) - (integerp (setq hsize (string-to-number hsize)))) + (if (and (stringp hsize) + (integerp (setq hsize (string-to-number hsize))) + (> hsize 0)) hsize 128)))) -- 2.39.2