remove duplication

This commit is contained in:
gmarik 2011-08-05 23:47:35 -05:00
parent 57474f97a7
commit fc749cdcc1

View File

@ -3,7 +3,7 @@ func! vundle#scripts#all(bang, ...)
let info = ['"Keymap: i - Install bundle; c - Cleanup; r - Refine list; R - Reload list'] let info = ['"Keymap: i - Install bundle; c - Cleanup; r - Refine list; R - Reload list']
let matches = s:load_scripts(a:bang) let matches = s:load_scripts(a:bang)
if !empty(a:1) if !empty(a:1)
let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"') let matches = filter(matches, 'v:val =~? "'.escape(a:1,'"').'"')
let info += ['"Search results for: '.a:1] let info += ['"Search results for: '.a:1]
" TODO: highlight matches " TODO: highlight matches
let b:match = a:1 let b:match = a:1