You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When icons are enabled in Dired - (add-hook 'dired-mode-hook #'treemacs-icons-dired-mode), the buffer becomes "unsaved" - attempts to kill a Dired buffer cause a popup to appear, asking if you want to save it. It looks like the treemacs-icons-dired--display hooked onto 'dired-after-readin-hook cause that and it shouldn't. Specifically it calls treemacs-icons-dired--display-icons-for-subdir which at some point does (insert icon), and that causes the buffer to become "modified".
Dired buffers shouldn't be "modified".
The text was updated successfully, but these errors were encountered:
agzam
added a commit
to agzam/treemacs
that referenced
this issue
Oct 3, 2024
When icons are enabled in Dired -
(add-hook 'dired-mode-hook #'treemacs-icons-dired-mode)
, the buffer becomes "unsaved" - attempts to kill a Dired buffer cause a popup to appear, asking if you want to save it. It looks like thetreemacs-icons-dired--display
hooked onto'dired-after-readin-hook
cause that and it shouldn't. Specifically it callstreemacs-icons-dired--display-icons-for-subdir
which at some point does(insert icon)
, and that causes the buffer to become "modified".Dired buffers shouldn't be "modified".
The text was updated successfully, but these errors were encountered: