Skip to content

Commit

Permalink
* helm-files.el (helm-ff-highlight-files): Remove unused arg, fix doc…
Browse files Browse the repository at this point in the history
…string.
  • Loading branch information
thierryvolpiatto committed Nov 17, 2012
1 parent b3a0ff0 commit e054259
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions helm-files.el
Expand Up @@ -1596,7 +1596,7 @@ return FNAME prefixed with [?]."
((or new-file (not (file-exists-p fname))) ((or new-file (not (file-exists-p fname)))
(concat prefix-new " " fname))))) (concat prefix-new " " fname)))))


(defun helm-c-find-files-transformer (files sources) (defun helm-c-find-files-transformer (files source)
"Transformer for `helm-c-source-find-files'. "Transformer for `helm-c-source-find-files'.
Tramp files are not highlighted unless `helm-ff-tramp-not-fancy' Tramp files are not highlighted unless `helm-ff-tramp-not-fancy'
is non--nil." is non--nil."
Expand All @@ -1608,10 +1608,12 @@ is non--nil."
(if (helm-dir-is-dot i) (if (helm-dir-is-dot i)
i (cons (helm-c-basename i) i))) i (cons (helm-c-basename i) i)))
files) files)
(helm-ff-highlight-files files sources))) (helm-ff-highlight-files files)))


(defun helm-ff-highlight-files (files sources) (defun helm-ff-highlight-files (files)
"Candidate transformer for `helm-c-source-find-files' without icons." "Candidate transformer function for `helm-c-source-find-files'.
Don't use it directly in `filtered-candidate-transformer' use instead
`helm-c-find-files-transformer'."
(loop for i in files (loop for i in files
for disp = (if (and helm-ff-transformer-show-only-basename for disp = (if (and helm-ff-transformer-show-only-basename
(not (helm-dir-is-dot i)) (not (helm-dir-is-dot i))
Expand Down

0 comments on commit e054259

Please sign in to comment.