Cease supporting :Gread!

This commit is contained in:
Tim Pope
2011-02-27 10:47:28 -05:00
parent 389efdcf14
commit 2c0574594d
2 changed files with 1 additions and 7 deletions

View File

@@ -876,10 +876,7 @@ function! s:Edit(cmd,...) abort
catch /^fugitive:/
return 'echoerr v:errmsg'
endtry
if a:cmd =~# 'read!$' || a:cmd ==# 'read'
if a:cmd =~# '!$'
call s:warn(':Gread! is deprecated. Use :Gread')
endif
if a:cmd ==# 'read'
return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.')
else
if &previewwindow && getbufvar('','fugitive_type') ==# 'index'