Fixed reinit

This commit is contained in:
Karl Yngve Lervåg 2013-10-06 11:44:50 +02:00
parent 6b5e575fe1
commit 164fc42e8b

View File

@ -64,18 +64,18 @@ function! latex#reinit()
call latex#latexmk#stop_all()
"
" Reset variables
" Reset global variables
"
let s:initialized = 0
unlet g:latex#data
bufdo unlet b:notbslash
bufdo unlet b:notcomment
bufdo unlet b:latex
"
" Reinitialize
" Reset and reinitialize buffers
"
bufdo call latex#init()
bufdo if getbufvar('%', '&filetype') == 'tex' |
\ unlet b:notbslash b:notcomment b:latex |
\ call latex#init() |
\ endif
endfunction
" {{{1 latex#view