diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8ddb28d..715ddba 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1142,7 +1142,8 @@ function! s:Edit(cmd,bang,...) abort endif if a:bang - let args = s:gsub(join(a:000, ' '), '\\@:p')) | - \ let b:git_dir = s:temp_files[expand(':p')] | + \ let b:git_dir = s:temp_files[expand(':p')].dir | \ let b:git_type = 'temp' | + \ let b:git_args = s:temp_files[expand(':p')].args | \ call fugitive#detect(expand(':p')) | \ setlocal bufhidden=delete | \ nnoremap q :bdelete|