Skip to content

Commit

Permalink
fix: update for magit-20240624 (#7)
Browse files Browse the repository at this point in the history
* fix: update for magit-20240624

* chore(ci): bump `magit` version

---------

Co-authored-by: Gregor Grigorjan <[email protected]>
  • Loading branch information
luke36 and gekoke authored Jun 27, 2024
1 parent f195eb1 commit e4887fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions magit-file-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
(format (el-patch-swap "%s -> %s" "%s -> %s %s") orig (el-patch-add (nerd-icons-icon-for-file file)) file))))

(el-patch-define-template
(defun magit-insert-untracked-files)
(defun magit-insert-files-1)
(insert
(propertize
(el-patch-swap file
Expand All @@ -87,11 +87,11 @@
(cond
(magit-file-icons-mode
(when magit-file-icons-enable-diff-file-section-icons (el-patch-eval-template #'magit-diff-insert-file-section 'defun))
(when magit-file-icons-enable-untracked-icons (el-patch-eval-template #'magit-insert-untracked-files 'defun))
(when magit-file-icons-enable-untracked-icons (el-patch-eval-template #'magit-insert-files-1 'defun))
(when magit-file-icons-enable-diffstat-icons (el-patch-eval-template #'magit-diff-wash-diffstat 'defun)))
('deactivate
(el-patch-unpatch #'magit-diff-insert-file-section 'defun nil)
(el-patch-unpatch #'magit-insert-untracked-files 'defun nil)
(el-patch-unpatch #'magit-insert-files-1 'defun nil)
(el-patch-unpatch #'magit-diff-wash-diffstat 'defun nil))))

(provide 'magit-file-icons)
Expand Down

0 comments on commit e4887fe

Please sign in to comment.