rainstormstudio / nerd-icons-dired

GNU General Public License v3.0
55 stars 10 forks source link

Icons not displayed correctly after aborting wdired changes #20

Open DCsunset opened 5 months ago

DCsunset commented 5 months ago

Mininal config:

;; 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:

  1. find-file (open a dir)
  2. dired-toggle-readonly
  3. wdired-abort-changes

Then the icons are not displayed correctly, as shown in the screenshot:

Screenshot_2024-04-18_19-13-57

Interestingly, running wdired-finish-edit won't cause such issue.