]> code.delx.au - dotemacs/commitdiff
ternjs: fix tern-project-dir patch
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 5 Oct 2017 12:43:14 +0000 (23:43 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 5 Oct 2017 12:43:14 +0000 (23:43 +1100)
lisp/my-file-modes.el

index 455ef6cea14a806e6c36ca9c7ba452eca99a4ef4..3b3436a167e0b823abfe5723d26138f618c4e536 100644 (file)
@@ -48,7 +48,7 @@
 (defun tern-project-dir ()
   (or (and (equal tern-last-file-name (buffer-file-name)) tern-project-dir)
       (and (not (buffer-file-name)) (setf tern-project-dir ""))
-      (setf tern-project-dir (locate-dominating-file default-directory ".git")))
+      (setf tern-project-dir (expand-file-name (locate-dominating-file default-directory ".git"))))
   ;; Track the file name to detect if it changed, which means the project
   ;; directory needs to be found again.
   (setf tern-last-file-name (buffer-file-name))