diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-01 21:03:22 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-01 21:03:22 +0100 |
commit | 014d27c882b10c6c6ba1b32ec0ad1ce993b108eb (patch) | |
tree | 76caa2a240b903ee74873dadc651a4fc3703c4ab /autoload | |
parent | fae9167083ed9df5743f6bf4e2b040f880601e49 (diff) | |
download | ale-014d27c882b10c6c6ba1b32ec0ad1ce993b108eb.zip |
#1621 - Tolerate SetOptions calls when ALE is loaded in a weird way
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/pattern_options.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/pattern_options.vim b/autoload/ale/pattern_options.vim index c445a9ed..d1f91785 100644 --- a/autoload/ale/pattern_options.vim +++ b/autoload/ale/pattern_options.vim @@ -23,7 +23,8 @@ function! s:CmpPatterns(left_item, right_item) abort endfunction function! ale#pattern_options#SetOptions(buffer) abort - if !g:ale_pattern_options_enabled || empty(g:ale_pattern_options) + if !get(g:, 'ale_pattern_options_enabled', 0) + \|| empty(get(g:, 'ale_pattern_options', 0)) return endif |