From 911987d8d65ade51311d512ac98cf39f89a309ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 3 Dec 2023 21:03:14 +0100 Subject: [PATCH] fix: VimtexEventCompile* may change buffer refer: #2844 --- autoload/vimtex/compiler.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/vimtex/compiler.vim b/autoload/vimtex/compiler.vim index d040a8b7f6..5aab348ab9 100644 --- a/autoload/vimtex/compiler.vim +++ b/autoload/vimtex/compiler.vim @@ -47,9 +47,11 @@ function! vimtex#compiler#callback(status) abort " {{{1 if !exists('b:vimtex.compiler') | return | endif silent! call s:output.pause() - if b:vimtex.compiler.silence_next_callback + let l:__silent = b:vimtex.compiler.silence_next_callback + if l:__silent + let b:vimtex.compiler.silence_next_callback = v:false if g:vimtex_compiler_silent - let b:vimtex.compiler.silence_next_callback = 0 + let l:__silent = v:false else call vimtex#log#set_silent() endif @@ -88,9 +90,8 @@ function! vimtex#compiler#callback(status) abort " {{{1 endif endif - if b:vimtex.compiler.silence_next_callback + if l:__silent call vimtex#log#set_silent_restore() - let b:vimtex.compiler.silence_next_callback = 0 endif call vimtex#qf#open(0)