mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Don't reuse status window for :Gdrop
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user