diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b1edf8f..35d01b6 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -259,24 +259,6 @@ function! fugitive#RemoteUrl(...) abort return v:shell_error ? '' : out endfunction -function! s:recall() abort - let rev = s:sub(fugitive#buffer().rev(), '^/', '') - if rev ==# ':' - return matchstr(getline('.'),'^.\=\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*') - elseif fugitive#buffer().type('tree') - let file = matchstr(getline('.'), '\t\zs.*') - if empty(file) && line('.') > 2 - let file = s:sub(getline('.'), '/$', '') - endif - if !empty(file) && rev !~# ':$' - return rev . '/' . file - else - return rev . file - endif - endif - return rev -endfunction - function! s:map(mode, lhs, rhs, ...) abort let flags = (a:0 ? a:1 : '') . (a:rhs =~# '' ? '' : '