Fix modeline duplication in buffer-file-name :help-echo

This commit is contained in:
Henrik Lissner 2017-10-05 01:25:55 +02:00
parent 3b9e67746d
commit eac0adff8a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -220,7 +220,7 @@ active."
(and (active) (and (active)
'doom-modeline-buffer-file)))) 'doom-modeline-buffer-file))))
(when face `(:inherit ,face)))))) (when face `(:inherit ,face))))))
'help-echo (+doom-modeline--buffer-file-name nil))) 'help-echo buffer-file-truename))
(defun +doom-modeline--buffer-file-name-truncate (&optional truncate-tail) (defun +doom-modeline--buffer-file-name-truncate (&optional truncate-tail)
"Propertized `buffer-file-name' that truncates every dir along path. "Propertized `buffer-file-name' that truncates every dir along path.