always define 'g:vimtex_latexmk_callback_hooks' (#498)

the variable 'g:vimtex_latexmk_callback_hooks' is referred to in
autoload/vimtex/view.vim, so it needs to be defined also if
'g:vimtex_latexmk_enabled' is false.
This commit is contained in:
Micha Moskovic 2016-07-21 12:57:36 +02:00 committed by Karl Yngve Lervåg
parent 47dca26d93
commit 1077606f76

View File

@ -9,11 +9,11 @@ function! vimtex#latexmk#init_options() " {{{1
call vimtex#util#set_default('g:vimtex_latexmk_build_dir', '') call vimtex#util#set_default('g:vimtex_latexmk_build_dir', '')
call vimtex#util#set_default('g:vimtex_latexmk_progname', call vimtex#util#set_default('g:vimtex_latexmk_progname',
\ get(v:, 'progpath', get(v:, 'progname'))) \ get(v:, 'progpath', get(v:, 'progname')))
call vimtex#util#set_default('g:vimtex_latexmk_callback_hooks', [])
if !g:vimtex_latexmk_enabled | return | endif if !g:vimtex_latexmk_enabled | return | endif
call vimtex#util#set_default('g:vimtex_latexmk_background', 0) call vimtex#util#set_default('g:vimtex_latexmk_background', 0)
call vimtex#util#set_default('g:vimtex_latexmk_callback', 1) call vimtex#util#set_default('g:vimtex_latexmk_callback', 1)
call vimtex#util#set_default('g:vimtex_latexmk_callback_hooks', [])
call vimtex#util#set_default('g:vimtex_latexmk_continuous', 1) call vimtex#util#set_default('g:vimtex_latexmk_continuous', 1)
call vimtex#util#set_default('g:vimtex_latexmk_options', '') call vimtex#util#set_default('g:vimtex_latexmk_options', '')
call vimtex#util#set_default('g:vimtex_quickfix_autojump', '0') call vimtex#util#set_default('g:vimtex_quickfix_autojump', '0')