Fix :Gcommit invocation of :Gstatus

Closes https://github.com/tpope/vim-fugitive/issues/1034
This commit is contained in:
Tim Pope 2018-05-31 20:32:52 -04:00
parent 68e097db6f
commit f8913cda12

View File

@ -1207,7 +1207,7 @@ function! s:Commit(mods, args, ...) abort
setlocal bufhidden=wipe filetype=gitcommit
return '1'
elseif error ==# '!'
return s:Status()
return 'Gstatus'
else
call s:throw(empty(error)?join(errors, ' '):error)
endif