Skip to content

Commit

Permalink
* helm-elisp.el (helm-source-complex-command-history): Use cdr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Volpiatto committed Apr 30, 2014
1 parent aa6d3b8 commit 500db39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helm-elisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,11 @@ First call indent, second complete symbol, third complete fname."
;;
(defvar helm-source-complex-command-history
'((name . "Complex Command History")
(candidates . (lambda () (mapcar 'prin1-to-string command-history)))
(candidates . (lambda ()
(mapcar 'prin1-to-string
;; Use cdr to avoid adding
;; `helm-complex-command-history' here.
(cdr command-history))))
(type . sexp)))

;;;###autoload
Expand Down

0 comments on commit 500db39

Please sign in to comment.