Don't force tab for :Gcommit --verbose

Keep it for -v, for now.

Closes https://github.com/tpope/vim-fugitive/issues/1011
This commit is contained in:
Tim Pope 2018-04-06 14:57:29 -04:00
parent 3ac95c4dde
commit b680699450

View File

@ -1121,7 +1121,7 @@ function! s:Commit(mods, args, ...) abort
endif
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
execute mods 'keepalt edit' s:fnameescape(msgfile)
elseif a:args =~# '\%(^\| \)-\%(-verbose\|\w*v\)\>' || mods =~# '\<tab\>'
elseif a:args =~# '\%(^\| \)-\w*v' || mods =~# '\<tab\>'
execute mods 'keepalt -tabedit' s:fnameescape(msgfile)
elseif s:buffer().type() ==# 'index'
execute mods 'keepalt edit' s:fnameescape(msgfile)