summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helm-eshell.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/helm-eshell.el b/helm-eshell.el
index d0cf2e8a..7c0d55ac 100644
--- a/helm-eshell.el
+++ b/helm-eshell.el
@@ -204,7 +204,11 @@ at point."
(lambda ()
(with-helm-current-buffer
(cl-loop for c from 0 to (ring-length eshell-history-ring)
- collect (eshell-get-history c)))))
+ for elm = (eshell-get-history c)
+ unless (and (member elm lst)
+ eshell-hist-ignoredups)
+ collect elm into lst
+ finally return lst))))
(nomark :initform t)
(multiline :initform t)
(keymap :initform helm-eshell-history-map)