Fix :0Gread to operate at very top of file

This commit is contained in:
Tim Pope 2010-01-09 13:41:51 -05:00
parent 43e752dcfd
commit 26edba9dec
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,8 @@ that are part of Git repositories).
:Gpedit [revision] |:pedit| a |fugitive-revision|
*fugitive-:Gread*
:Gread [revision] |:read| a |fugitive-revision|
:[range]Gread [revision]
|:read| a |fugitive-revision|
*fugitive-:Gread!*
:Gread! [revision] Empty the buffer and |:read| a |fugitive-revision|.

View File

@ -653,7 +653,7 @@ call s:command("-bar -bang -nargs=? -complete=customlist,s:EditComplete Gpedit
call s:command("-bar -bang -nargs=? -complete=customlist,s:EditComplete Gsplit :execute s:Edit('split<bang>',<f-args>)")
call s:command("-bar -bang -nargs=? -complete=customlist,s:EditComplete Gvsplit :execute s:Edit('vsplit<bang>',<f-args>)")
call s:command("-bar -bang -nargs=? -complete=customlist,s:EditComplete Gtabedit :execute s:Edit('tabedit<bang>',<f-args>)")
call s:command("-bar -bang -nargs=? -range -complete=customlist,s:EditComplete Gread :execute s:Edit('<line1>,<line2>read<bang>',<f-args>)")
call s:command("-bar -bang -nargs=? -count -complete=customlist,s:EditComplete Gread :execute s:Edit((!<count> && <line1> ? '' : <count>).'read<bang>',<f-args>)")
" }}}1
" Gwrite {{{1