[fzf#vim#grep] Ignore empty lines

Close #209
This commit is contained in:
Junegunn Choi
2016-09-30 13:34:05 +09:00
parent 3271f6c160
commit 7d1b007cb2

View File

@@ -521,7 +521,10 @@ function! s:ag_handler(lines, with_column)
endif
let cmd = get(get(g:, 'fzf_action', s:default_action), a:lines[0], 'e')
let list = map(a:lines[1:], 's:ag_to_qf(v:val, a:with_column)')
let list = map(filter(a:lines[1:], 'len(v:val)'), 's:ag_to_qf(v:val, a:with_column)')
if empty(list)
return
endif
let first = list[0]
try