Skip to content

Commit

Permalink
[Rendering] Correct insert of single directory nodes.
Browse files Browse the repository at this point in the history
Fixes #1057
  • Loading branch information
Alexander-Miller committed Sep 11, 2023
1 parent 8170a93 commit fe47131
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/elisp/treemacs-rendering.el
Original file line number Diff line number Diff line change
Expand Up @@ -1054,13 +1054,12 @@ DEPTH: Int"
(let* ((strs)
(face))
(if (file-directory-p ,path)
(setf strs (treemacs--create-dir-button-strings
,path
(concat prefix treemacs-icon-dir-closed)
,parent
,depth)
face 'treemacs-directory-face)
(setf strs (treemacs--create-file-button-strings ,path prefix ,parent ,depth)
(setf
strs (treemacs--create-dir-button-strings
,path prefix ,parent ,depth)
face 'treemacs-directory-face)
(setf strs (treemacs--create-file-button-strings
,path prefix ,parent ,depth)
face 'treemacs-file-face))
(-let [last (-last-item strs)]
(put-text-property 0 (length last) 'face face last))
Expand Down

0 comments on commit fe47131

Please sign in to comment.