Don't reuse status window for :Gdrop

This commit is contained in:
Tim Pope
2022-06-23 14:38:22 -04:00
parent aafbdf84cd
commit eac5ffd35b

View File

@@ -6083,7 +6083,7 @@ function! fugitive#Open(cmd, bang, mods, arg, ...) abort
if file !~# '^\a\a\+:' && !(has('win32') && file =~# '^\a:/$') if file !~# '^\a\a\+:' && !(has('win32') && file =~# '^\a:/$')
let file = substitute(file, '.\zs' . (has('win32') ? '[\/]' : '/') . '$', '', '') let file = substitute(file, '.\zs' . (has('win32') ? '[\/]' : '/') . '$', '', '')
endif endif
if a:cmd ==# 'edit' if a:cmd ==# 'edit' || a:cmd ==# 'drop'
call s:BlurStatus() call s:BlurStatus()
endif endif
return mods . a:cmd . pre . ' ' . s:fnameescape(file) return mods . a:cmd . pre . ' ' . s:fnameescape(file)