mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-17 15:53:43 -05:00
Cease supporting :Gread!
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user