Skip to content

Commit

Permalink
Merge pull request #21 from mattn/escape-filename
Browse files Browse the repository at this point in the history
escape filename since backslash make problems on Windows
  • Loading branch information
wsdjeg committed Jan 31, 2020
2 parents fdbed35 + d8d3781 commit dd674b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/fetch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if has('autocmd')
"
" 1. check new files for a spec when Vim has finished its init sequence...
autocmd BufNewFile *
\ execute 'autocmd fetch VimEnter * nested call fetch#buffer("'.expand('<afile>').'")'
\ execute 'autocmd fetch VimEnter * nested call fetch#buffer("'.escape(expand('<afile>'), ' \\').'")'
" 2. ... and start checking directly once the init sequence is complete
autocmd VimEnter *
\ execute 'autocmd! fetch BufNewFile * nested call fetch#buffer(expand("<afile>"))'
Expand Down

0 comments on commit dd674b5

Please sign in to comment.