Fixed #536: handle removal of buffers

This commit is contained in:
Karl Yngve Lervåg 2016-09-08 22:18:04 +02:00
parent a5e0b737dc
commit ce11d06130

View File

@ -810,6 +810,7 @@ function! s:buffer_deleted() " {{{1
let b:vimtex = l:vimtex let b:vimtex = l:vimtex
doautocmd User VimtexEventQuit doautocmd User VimtexEventQuit
if exists('b:vimtex_tmp') if exists('b:vimtex_tmp')
let b:vimtex = b:vimtex_tmp
unlet b:vimtex_tmp unlet b:vimtex_tmp
else else
unlet b:vimtex unlet b:vimtex