summaryrefslogtreecommitdiffstats
path: root/autoload/rustfmt.vim
diff options
context:
space:
mode:
authorCodingCellist <teh6@st-andrews.ac.uk>2020-09-05 21:37:11 +0200
committerGitHub <noreply@github.com>2020-09-05 21:37:11 +0200
commit3baafd5c336d18d87898ae87f16df7cd76bc8d65 (patch)
tree3bd6787bde3c5713fd5cfc7c962d60ac4b3dac50 /autoload/rustfmt.vim
parentb0124dc88082f5ed8c96faa16d3b334d38f5949f (diff)
downloadvim-polyglot-3baafd5c336d18d87898ae87f16df7cd76bc8d65.tar.gz
vim-polyglot-3baafd5c336d18d87898ae87f16df7cd76bc8d65.zip
Add support for Idris2, closes #534 (#535)
Diffstat (limited to 'autoload/rustfmt.vim')
-rw-r--r--autoload/rustfmt.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim
index 514e4147..60e2029e 100644
--- a/autoload/rustfmt.vim
+++ b/autoload/rustfmt.vim
@@ -65,12 +65,12 @@ endfunction
function! s:RustfmtConfigOptions()
let l:rustfmt_toml = findfile('rustfmt.toml', expand('%:p:h') . ';')
if l:rustfmt_toml !=# ''
- return '--config-path '.fnamemodify(l:rustfmt_toml, ":p")
+ return '--config-path '.shellescape(fnamemodify(l:rustfmt_toml, ":p"))
endif
let l:_rustfmt_toml = findfile('.rustfmt.toml', expand('%:p:h') . ';')
if l:_rustfmt_toml !=# ''
- return '--config-path '.fnamemodify(l:_rustfmt_toml, ":p")
+ return '--config-path '.shellescape(fnamemodify(l:_rustfmt_toml, ":p"))
endif
" Default to edition 2018 in case no rustfmt.toml was found.