diff --git a/src/extra/treemacs-icons-dired.el b/src/extra/treemacs-icons-dired.el index 5574fcf4..21001f1a 100644 --- a/src/extra/treemacs-icons-dired.el +++ b/src/extra/treemacs-icons-dired.el @@ -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.