diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 5d35258..ce71db2 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3203,7 +3203,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort let assign = len(dir) ? '|let b:git_dir = ' . string(dir) : '' if has('nvim') call fugitive#Autowrite() - return mods . (a:line2 ? 'split' : 'edit') . ' term://' . s:fnameescape(s:UserCommand(options, args)) . assign . '|startinsert' . after + return mods . (a:line2 ? 'new' : 'enew') . '|call termopen(' . string(s:UserCommandList(options) + args) . ')' . assign . '|startinsert' . after elseif has('terminal') call fugitive#Autowrite() return 'exe ' . string(mods . 'terminal ' . (a:line2 ? '' : '++curwin ') . join(map(s:UserCommandList(options) + args, 's:fnameescape(v:val)'))) . assign . after