Drop support for :{windowheight}Git

Ever since Vim gained -addr=, it's been impossible to define a command
that accepts both marks like '< (requires -addr=lines) an and a count
that's beyond the end of the file (requires -addr=other).  This means
:Git needs to pick sides between :'<,'>Git blame and :{windowheight}Git
log, and the former is much more important than the latter.
This commit is contained in:
Tim Pope
2020-03-11 13:05:59 -04:00
parent ccf582838b
commit 9a4d730270
2 changed files with 5 additions and 5 deletions

View File

@@ -2489,7 +2489,7 @@ 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')
let editcmd = a:line2 ? 'split' : 'edit'
if pager is# 1
if a:bang && a:line2 >= 0
let editcmd = 'read'
@@ -2669,7 +2669,7 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args
elseif a:bang
return mods . 'pedit' . arg . '|wincmd P'
else
return mods . 'keepalt ' . (a:count > 0 ? a:count : '') . 'split' . arg
return mods . 'keepalt split' . arg
endif
catch /^fugitive:/
return 'echoerr ' . string(v:exception)