diff options
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/em-hist.el | 5 |
1 files 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, | |||
| 263 | (or eshell-history-size | 263 | (or eshell-history-size |
| 264 | (let ((hsize (getenv "HISTSIZE"))) | 264 | (let ((hsize (getenv "HISTSIZE"))) |
| 265 | (setq eshell-history-size | 265 | (setq eshell-history-size |
| 266 | (if (and (> (length hsize) 0) | 266 | (if (and (stringp hsize) |
| 267 | (integerp (setq hsize (string-to-number hsize)))) | 267 | (integerp (setq hsize (string-to-number hsize))) |
| 268 | (> hsize 0)) | ||
| 268 | hsize | 269 | hsize |
| 269 | 128)))) | 270 | 128)))) |
| 270 | 271 | ||