Skip to content

Commit

Permalink
fix: VimtexEventCompile* may change buffer
Browse files Browse the repository at this point in the history
refer: #2844
  • Loading branch information
lervag committed Dec 3, 2023
1 parent 941485f commit 911987d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions autoload/vimtex/compiler.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 911987d

Please sign in to comment.