Skip to content

Commit

Permalink
Fix index with icon for directories as well
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Nov 13, 2022
1 parent a45fd7a commit cbec597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -4160,7 +4160,7 @@ Arg DISP is the display part of the candidate."

(defun helm-ff--is-dir-from-disp (disp)
"Return the face used for candidate when candidate is a directory."
(cl-loop with faces = (helm-mklist (get-text-property 1 'face disp))
(cl-loop with faces = (helm-mklist (get-text-property 0 'face disp))
for face in '(helm-ff-directory helm-ff-dotted-directory)
thereis (memq face faces)))

Expand Down

0 comments on commit cbec597

Please sign in to comment.