Skip to content

Commit 052c758

Browse files
authored
Merge pull request #41 from EvanHahn/escape-quotes-in-file-names
Fix error when opening new files containing quotes
2 parents db3fd95 + 9c68260 commit 052c758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/fetch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if has('autocmd')
2424
"
2525
" 1. check new files for a spec when Vim has finished its init sequence...
2626
autocmd BufNewFile *
27-
\ execute 'autocmd fetch VimEnter * nested call fetch#buffer("'.escape(expand('<afile>:p'), ' \\').'")'
27+
\ execute 'autocmd fetch VimEnter * nested call fetch#buffer("'.escape(expand('<afile>:p'), ' \\"').'")'
2828
" 2. ... and start checking directly once the init sequence is complete
2929
autocmd VimEnter *
3030
\ execute 'autocmd! fetch BufNewFile * nested call fetch#buffer(expand("<afile>:p"))'

0 commit comments

Comments
 (0)