From 3275a1778ae93cc88318a849759d689fe7143eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 28 Mar 2024 22:19:29 +0100 Subject: [PATCH] fix: don't create compiler state if disabled refer: #2905 --- autoload/vimtex/compiler.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/vimtex/compiler.vim b/autoload/vimtex/compiler.vim index 331aa74738..07207ae78c 100644 --- a/autoload/vimtex/compiler.vim +++ b/autoload/vimtex/compiler.vim @@ -34,6 +34,8 @@ endfunction " }}}1 function! vimtex#compiler#init_state(state) abort " {{{1 + if !g:vimtex_compiler_enabled | return | endif + let a:state.compiler = s:init_compiler({ \ 'file_info': { \ 'root': a:state.root,