We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28ed1b commit 19d5b33Copy full SHA for 19d5b33
autoload/rustfmt.vim
@@ -63,12 +63,12 @@ endfunction
63
function! s:RustfmtConfigOptions()
64
let l:rustfmt_toml = findfile('rustfmt.toml', expand('%:p:h') . ';')
65
if l:rustfmt_toml !=# ''
66
- return '--config-path '.fnamemodify(l:rustfmt_toml, ":p")
+ return '--config-path '.shellescape(fnamemodify(l:rustfmt_toml, ":p"))
67
endif
68
69
let l:_rustfmt_toml = findfile('.rustfmt.toml', expand('%:p:h') . ';')
70
if l:_rustfmt_toml !=# ''
71
- return '--config-path '.fnamemodify(l:_rustfmt_toml, ":p")
+ return '--config-path '.shellescape(fnamemodify(l:_rustfmt_toml, ":p"))
72
73
74
" Default to edition 2018 in case no rustfmt.toml was found.
0 commit comments