summaryrefslogtreecommitdiffstats
path: root/autoload/crystal_lang.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/crystal_lang.vim')
-rw-r--r--autoload/crystal_lang.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim
index 56221246..2acfdb76 100644
--- a/autoload/crystal_lang.vim
+++ b/autoload/crystal_lang.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
let s:save_cpo = &cpo
set cpo&vim
@@ -342,3 +339,4 @@ endfunction
let &cpo = s:save_cpo
unlet s:save_cpo
+endif