From 190fe2a4cf35b4840e7727fae0263488567742e8 Mon Sep 17 00:00:00 2001 From: Quinn Strahl Date: Fri, 28 Feb 2014 21:48:21 -0500 Subject: [PATCH] Store more than just dir in s:temp_files - Also store 'args', the git arguments used to generate the temp file --- plugin/fugitive.vim | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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|