Fixed reinit
This commit is contained in:
parent
6b5e575fe1
commit
164fc42e8b
@ -64,18 +64,18 @@ function! latex#reinit()
|
|||||||
call latex#latexmk#stop_all()
|
call latex#latexmk#stop_all()
|
||||||
|
|
||||||
"
|
"
|
||||||
" Reset variables
|
" Reset global variables
|
||||||
"
|
"
|
||||||
let s:initialized = 0
|
let s:initialized = 0
|
||||||
unlet g:latex#data
|
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
|
endfunction
|
||||||
|
|
||||||
" {{{1 latex#view
|
" {{{1 latex#view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user