Skip to content

Commit

Permalink
Merge pull request #87 from drrlvn/patch-1
Browse files Browse the repository at this point in the history
Escape custom-path-to-bin to support spaces
  • Loading branch information
kwrooijen authored Jul 29, 2019
2 parents 1a45c67 + 578cfe1 commit 626fd89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Always set to nil if cargo-process--enable-rust-backtrace is nil"
"Find the workspace root using `cargo metadata`."
(when (cargo-process--project-root)
(let* ((metadata-text (shell-command-to-string
(concat cargo-process--custom-path-to-bin
(concat (shell-quote-argument cargo-process--custom-path-to-bin)
" metadata --format-version 1 --no-deps")))
(metadata-json (json-read-from-string metadata-text))
(workspace-root (cdr (assoc 'workspace_root metadata-json))))
Expand All @@ -286,7 +286,7 @@ OPENS-EXTERNAL is non-nil if the COMMAND is expected to open an external applica
(or last-cmd
(cargo-process--maybe-read-command
(cargo-process--augment-cmd-for-os opens-external
(mapconcat #'identity (list cargo-process--custom-path-to-bin
(mapconcat #'identity (list (shell-quote-argument cargo-process--custom-path-to-bin)
command
(manifest-path-argument name)
cargo-process--command-flags)
Expand Down

0 comments on commit 626fd89

Please sign in to comment.