Skip to content

Commit 7d105d7

Browse files
authored
Let "copilot-server-executable" return absolute path (#370)
As "copilot--start-agent" uses "(file-exists-p (copilot-server-executable))", it will fail if the path is not absolute.
1 parent 8a0068a commit 7d105d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

copilot.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,7 @@ in `post-command-hook'."
10711071
((and (f-absolute? copilot-server-executable)
10721072
(f-exists? copilot-server-executable))
10731073
copilot-server-executable)
1074-
((executable-find copilot-server-executable t)
1075-
copilot-server-executable)
1074+
((executable-find copilot-server-executable t))
10761075
(t
10771076
(let ((path (executable-find
10781077
(f-join copilot-install-dir

0 commit comments

Comments
 (0)