mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-10 06:21:53 +08:00
#1621 - Tolerate SetOptions calls when ALE is loaded in a weird way
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user