summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2023-09-05 15:59:03 +0100
committerJoão Távora <joaotavora@gmail.com>2023-09-05 18:17:26 +0100
commit2292a57f11e4ca07e3304b69ef42b929569e41d0 (patch)
treebeb934e51faa127d4fe07074afca8772218da3d9
parent995e1638d261ad845aed39a81fd8f158d721dba5 (diff)
Replace project-name with much faster and decent alternative
* breadcrumb.el (bc--project-crumbs-1): Use file-name-base + directory-file-name.
-rw-r--r--breadcrumb.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/breadcrumb.el b/breadcrumb.el
index cf527af..542f4f6 100644
--- a/breadcrumb.el
+++ b/breadcrumb.el
@@ -343,8 +343,8 @@ propertized crumbs."
collect (bc--format-project-node s more root upto) into retval
finally
(cl-return
- (if project
- (cons (propertize (project-name project)
+ (if root
+ (cons (propertize (file-name-base (directory-file-name root))
'bc-dont-shorten t
'face 'bc-project-base-face)
retval)