]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak previous em-hist.el change.
authorGlenn Morris <rgm@gnu.org>
Thu, 1 Dec 2011 22:30:12 +0000 (17:30 -0500)
committerGlenn Morris <rgm@gnu.org>
Thu, 1 Dec 2011 22:30:12 +0000 (17:30 -0500)
lisp/eshell/em-hist.el

index 975f1b171438415e2f16a10300cb92f6c8dda086..5ae419f7ba93c295c7c4c70d6a0ec32efb1c919d 100644 (file)
@@ -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))))