emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/telephone-line a9d89b876d 157/195: Fix for symlinks


From: ELPA Syncer
Subject: [nongnu] elpa/telephone-line a9d89b876d 157/195: Fix for symlinks
Date: Wed, 5 Jan 2022 02:59:43 -0500 (EST)

branch: elpa/telephone-line
commit a9d89b876d5dfac700101904be9f26f7155b42ae
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>

    Fix for symlinks
---
 telephone-line-segments.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 9a94c9dc2e..98327c0321 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -218,7 +218,8 @@ Inspired by doom-modeline."
             (funcall (telephone-line-projectile-segment) face)
             (propertize
              (concat "/"
-                     (if-let ((rel-path (file-relative-name (buffer-file-name) 
(projectile-project-root))))
+                     (if-let ((rel-path (file-relative-name 
(projectile-file-truename (buffer-file-name))
+                                                            
(projectile-project-root))))
                          (telephone-line--truncate-path rel-path (or 
truncate-until -1))))
              'help-echo (buffer-file-name)))
     (telephone-line-raw mode-line-buffer-identification t)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]