From ce11d06130b2114ffcae630d0204bcc92e73e8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 8 Sep 2016 22:18:04 +0200 Subject: [PATCH] Fixed #536: handle removal of buffers --- autoload/vimtex.vim | 1 + 1 file changed, 1 insertion(+) 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