Don't add line number, pdf, and (current) tex file twice to the list of options. We do it when calling the command. (#466)

This commit is contained in:
Matteo Riondato 2016-06-04 07:05:12 -04:00 committed by Karl Yngve Lervåg
parent 1763cd3ae9
commit 777efa5cbb

View File

@ -824,7 +824,7 @@ Options~
let l:tex = expand('%:p')
let l:cmd = [g:vimtex_view_general_viewer, '-r']
if !empty(system('pgrep Skim'))
call extend(l:cmd, ['-g', line('.'), l:out, l:tex])
call extend(l:cmd, ['-g'])
endif
if has('nvim')
call jobstart(l:cmd + [line('.'), l:out, l:tex])