mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix error while opening the special directory.
The directory '.HFS+ Private Directory Data'$'\r' on macOS is special, and OS is unable to handle correctly. file-name-nondirectory returns empty always.
This commit is contained in:
parent
a6814ac4e3
commit
a4ff475a11
1 changed files with 1 additions and 2 deletions
|
@ -204,8 +204,7 @@ buffer where knowing the current project directory is important."
|
|||
(icon (if (and buffer-file-name
|
||||
(all-the-icons-match-to-alist buffer-file-name
|
||||
all-the-icons-icon-alist))
|
||||
(doom-modeline-icon-for-file (file-name-nondirectory buffer-file-name)
|
||||
:height height)
|
||||
(doom-modeline-icon-for-file buffer-file-name :height height)
|
||||
(doom-modeline-icon-for-mode major-mode :height height))))
|
||||
(if (symbolp icon)
|
||||
(setq icon (doom-modeline-icon-faicon "file" :height height :v-adjust -0.0575)))
|
||||
|
|
Loading…
Reference in a new issue