;; make sure all packages in the load-path already
(require 'nerd-icons)
(require 'nerd-icons-dired)
(add-hook 'dired-mode-hook #'nerd-icons-dired-mode)
Run the following commands to reproduce the bug:
find-file (open a dir)
dired-toggle-readonly
wdired-abort-changes
Then the icons are not displayed correctly, as shown in the screenshot:
Interestingly, running wdired-finish-edit won't cause such issue.
Mininal config:
Run the following commands to reproduce the bug:
find-file
(open a dir)dired-toggle-readonly
wdired-abort-changes
Then the icons are not displayed correctly, as shown in the screenshot:
Interestingly, running
wdired-finish-edit
won't cause such issue.