mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-16 07:23:48 -05:00
Improve guard to support concatenated files
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
|
||||
" LatexBox_GetMainFileName: gets the name of the main file being compiled. {{{
|
||||
" Description: returns the full path name of the main file.
|
||||
" This function checks for the existence of a .latexmain file
|
||||
@@ -64,3 +61,4 @@ function! LatexBox_GetMainFileName(...)
|
||||
" certain platforms.
|
||||
return lheadfile
|
||||
endfunction
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user