branch: elpa/telephone-line
commit e0eeb057ca517f8992de78b5f1240005e0be2baa
Author: Daniel Bordak <[email protected]>
Commit: Daniel Bordak <[email protected]>

    Actually check if the projectile stuff will work
---
 telephone-line-segments.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 59fe2d08b7..0f012e71c6 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -206,8 +206,9 @@ TRUNCATE-UNTIL sets when to stop truncating; -1 for all but 
one (i.e. filename),
 If SHOW-PROJECT-PATH is non-nil, shows the abbreviated path leading up to the 
project dir. Value works the same as TRUNCATE-UNTIL
 Inspired by doom-modeline."
   (if (and (buffer-file-name)
-           (bound-and-true-p projectile-project-root)
-           (bound-and-true-p projectile-project-name))
+           (fboundp 'projectile-project-name)
+           (fboundp 'projectile-project-p)
+           (projectile-project-p))
       (list ""
             (if show-project-path
                 (propertize

Reply via email to