summaryrefslogtreecommitdiffstats
path: root/indent/gohtmltmpl.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--indent/gohtmltmpl.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim
index 60c38fe0..2988cfc8 100644
--- a/indent/gohtmltmpl.vim
+++ b/indent/gohtmltmpl.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
if exists("b:did_indent")
finish
endif
@@ -56,3 +53,4 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et
+endif