mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-15 18:42:44 +08:00
[Ag] Ignore error while opening the first file
This commit is contained in:
1 parent
e487084857
commit
47f2b5042f
1 file changed
+6
-3
@@ -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