commit bc0b78ee8461b42c8226a9a23504c4e0da467ab1 (tree)
parent 5bcb42164e7b2af3ad1d1ead654e5fb4f06023c2
Author: Tim Pope <code@tpope.net>
Date: Mon, 20 Jan 2020 08:41:19 -0500
Remove dead code
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -4096,11 +4096,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, args) abort
call add(cmd, '--column')
endif
let tree = s:Tree(dir)
- if type(a:args) == type([])
- let [args, after] = [a:args, '']
- else
- let [args, after] = s:SplitExpandChain(a:args, tree)
- endif
+ let args = a:args
let prefix = FugitiveVimPath(s:HasOpt(args, '--cached') || empty(tree) ? 'fugitive://' . dir . '//0/' : tree . '/')
let name_only = s:HasOpt(args, '-l', '--files-with-matches', '--name-only', '-L', '--files-without-match')
let title = [listnr < 0 ? ':Ggrep' : ':Glgrep'] + args
@@ -4123,9 +4119,9 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, args) abort
redraw
endif
if !a:bang && !empty(list)
- return (listnr < 0 ? 'c' : 'l').'first' . after
+ return (listnr < 0 ? 'c' : 'l').'first'
else
- return after[1:-1]
+ return ''
endif
endfunction