From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- ftplugin/latex-box/folding.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ftplugin/latex-box/folding.vim') diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim index 6311ebf2..1dac48d5 100644 --- a/ftplugin/latex-box/folding.vim +++ b/ftplugin/latex-box/folding.vim @@ -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 " Folding support for LaTeX " @@ -380,3 +377,4 @@ endfunction " {{{1 Footer " vim:fdm=marker:ff=unix:ts=4:sw=4 +endif -- cgit v1.2.3