mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-02-25 11:07:28 +08:00
[Ag] Ignore error while opening the first file
This commit is contained in:
@@ -394,9 +394,12 @@ function! s:ag_handler(lines)
|
|||||||
let list = map(a:lines[1:], 's:ag_to_qf(v:val)')
|
let list = map(a:lines[1:], 's:ag_to_qf(v:val)')
|
||||||
|
|
||||||
let first = list[0]
|
let first = list[0]
|
||||||
execute cmd s:escape(first.filename)
|
try
|
||||||
execute first.lnum
|
execute cmd s:escape(first.filename)
|
||||||
execute 'normal!' first.col.'|zz'
|
execute first.lnum
|
||||||
|
execute 'normal!' first.col.'|zz'
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
|
|
||||||
if len(list) > 1
|
if len(list) > 1
|
||||||
call setqflist(list)
|
call setqflist(list)
|
||||||
|
|||||||
Reference in New Issue
Block a user