Skip to content

Commit 240c9b7

Browse files
authored
Merge pull request #22 from emacs-php/fix/root-directory
Trailing / from the end of project root directory name
2 parents f25fe20 + ec6aa73 commit 240c9b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

phpactor.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@
7878

7979
(defun phpactor-get-working-dir ()
8080
"Return working directory of Phpactor."
81-
(expand-file-name
82-
(or phpactor-working-dir (php-project-get-root-dir))))
81+
(directory-file-name
82+
(expand-file-name
83+
(or phpactor-working-dir (php-project-get-root-dir)))))
8384

8485
(defun phpactor--make-command-string (sub-command &rest args)
8586
"Return command string by `SUB-COMMAND' and `ARGS'."

0 commit comments

Comments
 (0)