Skip to content

Commit

Permalink
Fix jtbm37#10 put icon before file name during redisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Mar 4, 2022
1 parent 5e9b097 commit de9b14c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions all-the-icons-dired.el
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
(when all-the-icons-dired-monochrome
`(:face ,(face-at-point))))))))
(if (member file '("." ".."))
(all-the-icons-dired--add-overlay (point) " \t")
(all-the-icons-dired--add-overlay (point) (concat icon "\t"))))))
(all-the-icons-dired--add-overlay (dired-move-to-filename) " \t")
(all-the-icons-dired--add-overlay (dired-move-to-filename) (concat icon "\t"))))))
(forward-line 1))))

(defun all-the-icons-dired--refresh-advice (fn &rest args)
Expand All @@ -111,7 +111,8 @@
(all-the-icons-dired--refresh))))

(defvar all-the-icons-dired-advice-alist
'((dired-aux dired-create-directory all-the-icons-dired--refresh-advice)
'((dired dired-do-redisplay all-the-icons-dired--refresh-advice)
(dired-aux dired-create-directory all-the-icons-dired--refresh-advice)
(dired-aux dired-do-create-files all-the-icons-dired--refresh-advice)
(dired-aux dired-do-kill-lines all-the-icons-dired--refresh-advice)
(dired-aux dired-do-rename all-the-icons-dired--refresh-advice)
Expand Down

0 comments on commit de9b14c

Please sign in to comment.