Fixed #575: Handle undefined option

This commit is contained in:
Karl Yngve Lervåg 2016-09-28 08:12:20 +02:00
parent 432dee6982
commit 12990d2170

View File

@ -595,7 +595,7 @@ function! s:latexmk_build_cmd() " {{{1
"
" Set viewer options
"
if !g:vimtex_view_automatic
if !get(g:, 'vimtex_view_automatic', 1)
\ || get(b:vimtex.viewer, 'xwin_id', 0) > 0
\ || get(s:, 'silence_next_callback', 0)
let cmd .= ' -view=none'