Remove :Gcommit claiming :Gstatus window

This commit is contained in:
Tim Pope
2018-12-25 19:36:26 -05:00
parent 261c00986d
commit a32c301f51

View File

@@ -2233,10 +2233,6 @@ function! s:Commit(mods, args, ...) abort
execute mods 'keepalt edit' s:fnameescape(msgfile)
elseif a:args =~# '\%(^\| \)-\w*v' || mods =~# '\<tab\>'
execute mods 'keepalt -tabedit' s:fnameescape(msgfile)
elseif get(b:, 'fugitive_type', '') ==# 'index'
execute mods 'keepalt edit' s:fnameescape(msgfile)
execute (search('^#','n')+1).'wincmd+'
setlocal nopreviewwindow
else
execute mods 'keepalt split' s:fnameescape(msgfile)
endif