Skip to content

Commit

Permalink
[Dired] Prevent dired buffers' modified flag from being changed.
Browse files Browse the repository at this point in the history
fixes #1123
  • Loading branch information
agzam authored and Alexander-Miller committed Oct 17, 2024
1 parent 2377d23 commit 63e80d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extra/treemacs-icons-dired.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
(treemacs-icon-for-file file))))
(insert icon))
(treemacs-return nil))
(forward-line 1) ))))))
(forward-line 1))))
(set-buffer-modified-p nil))))

(defun treemacs-icons-dired--insert-subdir-advice (&rest args)
"Advice to Dired & Dired+ insert-subdir commands.
Expand Down

0 comments on commit 63e80d4

Please sign in to comment.