From 17210b42294e2f6df82985256b9fab724bdebdcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Wed, 28 Sep 2016 10:20:02 +0200 Subject: [PATCH] Fix #575: Another undefined variable --- autoload/vimtex/latexmk.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 4c96cdd..3acc311 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -596,7 +596,7 @@ function! s:latexmk_build_cmd() " {{{1 " Set viewer options " if !get(g:, 'vimtex_view_automatic', 1) - \ || get(b:vimtex.viewer, 'xwin_id', 0) > 0 + \ || get(get(b:vimtex, 'viewer', {}), 'xwin_id', 0) > 0 \ || get(s:, 'silence_next_callback', 0) let cmd .= ' -view=none' elseif g:vimtex_view_enabled