commit b680699450805e01960184b60a2cf0d3a71088cf (tree)
parent 3ac95c4dde854d259147dfc8e008e3ca1db57a28
Author: Tim Pope <code@tpope.net>
Date: Fri, 6 Apr 2018 14:57:29 -0400
Don't force tab for :Gcommit --verbose
Keep it for -v, for now.
Closes https://github.com/tpope/vim-fugitive/issues/1011
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -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)