diff --git a/autoload/vimtex.vim b/autoload/vimtex.vim index 5bff089..afda135 100644 --- a/autoload/vimtex.vim +++ b/autoload/vimtex.vim @@ -810,6 +810,7 @@ function! s:buffer_deleted() " {{{1 let b:vimtex = l:vimtex doautocmd User VimtexEventQuit if exists('b:vimtex_tmp') + let b:vimtex = b:vimtex_tmp unlet b:vimtex_tmp else unlet b:vimtex