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:
parent
3ac95c4dde
commit
b680699450
@ -1121,7 +1121,7 @@ function! s:Commit(mods, args, ...) abort
|
|||||||
endif
|
endif
|
||||||
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
||||||
execute mods 'keepalt edit' s:fnameescape(msgfile)
|
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)
|
execute mods 'keepalt -tabedit' s:fnameescape(msgfile)
|
||||||
elseif s:buffer().type() ==# 'index'
|
elseif s:buffer().type() ==# 'index'
|
||||||
execute mods 'keepalt edit' s:fnameescape(msgfile)
|
execute mods 'keepalt edit' s:fnameescape(msgfile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user