From 36ac20729048d36c9559eb1d58e28f11dbd4eeb9 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Thu, 5 Oct 2017 23:43:14 +1100 Subject: [PATCH] ternjs: fix tern-project-dir patch --- lisp/my-file-modes.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 455ef6c..3b3436a 100644 --- a/lisp/my-file-modes.el +++ b/lisp/my-file-modes.el @@ -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)) -- 2.39.2