Skip to content

Commit

Permalink
[Rendering] Ensure flattened directories don't temporarily hide git a…
Browse files Browse the repository at this point in the history
…nnotations.
  • Loading branch information
Alexander-Miller committed Oct 16, 2023
1 parent 42b9e48 commit 474febd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/elisp/treemacs-rendering.el
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,15 @@ DIRS: List of Collapse Paths. Each Collapse Path is a list of
(unless (treemacs--non-simple-git-mode-enabled)
(add-text-properties
beg (point)
'(face treemacs-directory-collapsed-face)))))))))))
'(face treemacs-directory-collapsed-face)))
(-when-let* ((ann (treemacs-get-annotation new-path))
(git-cache
(->> original-path
(treemacs--parent-dir)
(ht-get treemacs--git-cache))))
(treemacs-button-put
b 'face
(treemacs-annotation->face-value ann)))))))))))

(defmacro treemacs--inplace-map-when-unrolled (items interval &rest mapper)
"Unrolled in-place mapping operation.
Expand Down

0 comments on commit 474febd

Please sign in to comment.