Skip to content

Commit

Permalink
fix: call quickfix function before issuing autocmd
Browse files Browse the repository at this point in the history
refer: #2847
  • Loading branch information
lervag committed Dec 15, 2023
1 parent 74332a6 commit 5e6a8ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/vimtex/compiler.vim
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function! vimtex#compiler#callback(status) abort " {{{1
call vimtex#syntax#packages#init()
endif

call vimtex#qf#open(0)
if exists('#User#VimtexEventCompileSuccess')
doautocmd <nomodeline> User VimtexEventCompileSuccess
endif
Expand All @@ -85,6 +86,7 @@ function! vimtex#compiler#callback(status) abort " {{{1
call vimtex#log#warning('Compilation failed!')
endif

call vimtex#qf#open(0)
if exists('#User#VimtexEventCompileFailed')
doautocmd <nomodeline> User VimtexEventCompileFailed
endif
Expand All @@ -94,7 +96,6 @@ function! vimtex#compiler#callback(status) abort " {{{1
call vimtex#log#set_silent_restore()
endif

call vimtex#qf#open(0)
silent! call s:output.resume()
endfunction

Expand Down

0 comments on commit 5e6a8ff

Please sign in to comment.