branch: elpa/telephone-line
commit 401a9c6ad6f99ea41b270baaca0977af67c1f2fd
Merge: a9d89b876d 123ba1f990
Author: Daniel Bordak <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #81 from ogdenwebb/fix-projectile-buffer-segment
Little fix for projectile-buffer-segment.
---
telephone-line-segments.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 98327c0321..59fe2d08b7 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -206,8 +206,8 @@ 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)
- (fboundp 'projectile-project-root)
- (fboundp 'projectile-project-name))
+ (bound-and-true-p projectile-project-root)
+ (bound-and-true-p projectile-project-name))
(list ""
(if show-project-path
(propertize