Skip to content

Commit

Permalink
FIX run cargo command in project root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kwrooijen committed Dec 27, 2016
1 parent c10de8e commit 1565746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cargo-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@
(path cargo-process--custom-path-to-bin)
(path (and path (file-name-as-directory path)))
(command (cargo-process--maybe-read-command (concat path command)))
(project-root (cargo-process--project-root)))
(project-root (cargo-process--project-root))
(default-directory (or project-root default-directory)))
(save-some-buffers (not compilation-ask-about-save)
(lambda ()
(and project-root
Expand Down

0 comments on commit 1565746

Please sign in to comment.