Skip to content

all-the-icons-dired--refresh-advice doesn't check display-graphic-p #51

@mohkale

Description

@mohkale

I'm using this package in the terminal and by default icons aren't setup because this condition fails on ttys.

(define-minor-mode all-the-icons-dired-mode
"Display all-the-icons icon for each files in a dired buffer."
:lighter " all-the-icons-dired-mode"
(when (and (derived-mode-p 'dired-mode) (display-graphic-p))
(if all-the-icons-dired-mode
(all-the-icons-dired--setup)
(all-the-icons-dired--teardown))))

However all-the-icons-dired--refresh-advice which is hooked into misc dired functions eg. dired-maybe-insert-subdir doesn't check this condition so when you run it icons are forcefully inserted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions