mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-09 04:52:30 +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 first = list[0]
|
||||
execute cmd s:escape(first.filename)
|
||||
execute first.lnum
|
||||
execute 'normal!' first.col.'|zz'
|
||||
try
|
||||
execute cmd s:escape(first.filename)
|
||||
execute first.lnum
|
||||
execute 'normal!' first.col.'|zz'
|
||||
catch
|
||||
endtry
|
||||
|
||||
if len(list) > 1
|
||||
call setqflist(list)
|
||||
|
||||
Reference in New Issue
Block a user