mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-30 19:19:52 +00:00
Remove redundant slash \
in truncated directory.
This commit is contained in:
parent
a530aaee04
commit
669206d03a
1 changed files with 6 additions and 5 deletions
|
@ -559,11 +559,12 @@ Example:
|
||||||
(let ((project-props `(,@(if project-faces `(:inherit ,project-faces)) ,@(if active '(:weight bold))))
|
(let ((project-props `(,@(if project-faces `(:inherit ,project-faces)) ,@(if active '(:weight bold))))
|
||||||
(relative-props `(,@(if relative-faces `(:inherit ,relative-faces))))
|
(relative-props `(,@(if relative-faces `(:inherit ,relative-faces))))
|
||||||
(file-props `(,@(if file-faces `(:inherit ,file-faces)))))
|
(file-props `(,@(if file-faces `(:inherit ,file-faces)))))
|
||||||
(concat (propertize
|
(concat (propertize (file-name-nondirectory (directory-file-name (doom-modeline-project-root)))
|
||||||
(concat (file-name-nondirectory (directory-file-name (doom-modeline-project-root))) "/")
|
|
||||||
'face project-props)
|
'face project-props)
|
||||||
(unless (string-equal relative-path "./")
|
(propertize (if (string-equal relative-path "./")
|
||||||
(propertize (shrink-path--dirs-internal relative-path t) 'face relative-props))
|
"/"
|
||||||
|
(shrink-path--dirs-internal relative-path t))
|
||||||
|
'face relative-props)
|
||||||
(propertize (file-name-nondirectory file-path) 'face file-props)))))))
|
(propertize (file-name-nondirectory file-path) 'face file-props)))))))
|
||||||
|
|
||||||
(defun doom-modeline--buffer-file-name-relative (_file-path true-file-path &optional include-project)
|
(defun doom-modeline--buffer-file-name-relative (_file-path true-file-path &optional include-project)
|
||||||
|
|
Loading…
Reference in a new issue