mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-28 19:19:21 +00:00
Fix incorrect colors of slash.
This commit is contained in:
parent
345959763b
commit
51ca9570a6
1 changed files with 5 additions and 3 deletions
|
@ -559,11 +559,13 @@ Example:
|
|||
(let ((project-props `(,@(if project-faces `(:inherit ,project-faces)) ,@(if active '(:weight bold))))
|
||||
(relative-props `(,@(if relative-faces `(:inherit ,relative-faces))))
|
||||
(file-props `(,@(if file-faces `(:inherit ,file-faces)))))
|
||||
(concat (propertize (file-name-nondirectory (directory-file-name project-root))
|
||||
(concat (propertize (concat
|
||||
(file-name-nondirectory (directory-file-name project-root))
|
||||
"/")
|
||||
'face project-props)
|
||||
(propertize (if (string-equal relative-path "./")
|
||||
"/"
|
||||
(shrink-path--dirs-internal relative-path t))
|
||||
""
|
||||
(substring (shrink-path--dirs-internal relative-path t) 1))
|
||||
'face relative-props)
|
||||
(propertize (file-name-nondirectory file-path) 'face file-props)))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue