branch: elpa/javelin
commit 610680070c1e33e6d21ef5e0ec850b3b2c604fef
Author: Otávio Schwanck dos Santos <[email protected]>
Commit: Otávio Schwanck dos Santos <[email protected]>

    fix harpoon when dont have a project
---
 harpoon.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/harpoon.el b/harpoon.el
index 2d41bc30b61..a7e746fc502 100644
--- a/harpoon.el
+++ b/harpoon.el
@@ -152,8 +152,7 @@
                                        (format "head -n %s < %s | tail -n 1"
                                                line-number
                                                (if (eq major-mode 
'harpoon-mode) (file-truename (buffer-file-name)) (harpoon--file-name))))))
-         (full-file-name (concat (or harpoon--project-path 
(harpoon-project-root-function)) file-name)))
-    (message full-file-name)
+         (full-file-name (if (harpoon--has-project) (concat (or 
harpoon--project-path (harpoon-project-root-function)) file-name) file-name)))
     (if (file-exists-p full-file-name)
         (find-file full-file-name)
       (message "File not found."))))

Reply via email to