diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 2b9d6af..70a832d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2456,14 +2456,20 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort endif let i += 1 endwhile + let editcmd = (a:line2 > 0 ? a:line2 : '') . (a:line2 ? 'split' : 'edit') if args[0] =~# '^-p$\|^--paginate$' call remove(args, 0) let pager = 1 + if a:bang && a:line2 == 0 + let editcmd .= '!' + elseif a:bang + let editcmd = 'pedit' + endif else let pager = fugitive#PagerFor(args, config) endif if a:bang || pager is# 1 - return s:OpenExec((a:line2 > 0 ? a:line2 : '') . (a:line2 ? 'split' : 'edit'), a:mods, env, flags + args, dir) . after + return s:OpenExec(editcmd, a:mods, env, flags + args, dir) . after endif if s:HasOpt(args, ['add', 'checkout', 'commit', 'stage', 'stash', 'reset'], '-p', '--patch') || \ s:HasOpt(args, ['add', 'clean', 'stage'], '-i', '--interactive') || diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 0baa1e3..541e819 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -637,7 +637,7 @@ just one space character longer than the legacy version. *:Gvsplit!* Superseded by |:vert| |:Git| --paginate. *:Gtabsplit!* Superseded by |:tab| |:Git| --paginate. *:Gedit!* Superseded by :0Git --paginate. -*:Gpedit!* Deprecated with no current plans for replacement. +*:Gpedit!* Superseded by :Git! --paginate. ABOUT *fugitive-about*