branch: elpa/javelin
commit 5af07ea7fb9636248cde32a2a8e4c03ffb01d0b8
Author: Jonas Collberg <[email protected]>
Commit: Jonas Collberg <[email protected]>
Fix problem with getting project name with `project.el`
---
harpoon.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/harpoon.el b/harpoon.el
index 399f4c92fd4..5acb46dd352 100644
--- a/harpoon.el
+++ b/harpoon.el
@@ -107,7 +107,7 @@
(defun harpoon--get-project-name-for-project ()
"Return projects name for project."
- (let* ((splitted-project-path (split-string (car (last (project-current)))
"/"))
+ (let* ((splitted-project-path (split-string (project-root (project-current))
"/"))
(splitted-length (length splitted-project-path))
(project-name (nth (- splitted-length 2) splitted-project-path)))
project-name))