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 --- plugin_guard.vim.template | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugin_guard.vim.template') diff --git a/plugin_guard.vim.template b/plugin_guard.vim.template index 5a3171a2..f2c9883d 100644 --- a/plugin_guard.vim.template +++ b/plugin_guard.vim.template @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, '%%PACK%%') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '%%PACK%%') == -1 %%CONTENT%% +endif -- cgit v1.2.3