summaryrefslogtreecommitdiffstats
path: root/autoload/dart.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--autoload/dart.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/dart.vim b/autoload/dart.vim
index 0e8fb525..f524e09d 100644
--- a/autoload/dart.vim
+++ b/autoload/dart.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1
+ finish
+endif
+
function! s:error(text) abort
echohl Error
@@ -170,5 +172,3 @@ function! dart#setModifiable() abort
setlocal nomodifiable
endif
endfunction
-
-endif