Make toggling work when pattern options are enabled
This commit is contained in:
parent
daee4a4722
commit
6053f764bd
2 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,7 @@ endfunction
|
|||
function! s:EnablePreamble() abort
|
||||
" Set pattern options again, if enabled.
|
||||
if g:ale_pattern_options_enabled
|
||||
call ale#pattern_options#SetOptions()
|
||||
call ale#pattern_options#SetOptions(bufnr(''))
|
||||
endif
|
||||
|
||||
" Lint immediately, including running linters against the file.
|
||||
|
|
|
@ -3,10 +3,14 @@ Before:
|
|||
Save g:ale_set_signs
|
||||
Save g:ale_set_lists_synchronously
|
||||
Save g:ale_run_synchronously
|
||||
Save g:ale_pattern_options
|
||||
Save g:ale_pattern_options_enabled
|
||||
|
||||
let g:ale_set_signs = 1
|
||||
let g:ale_set_lists_synchronously = 1
|
||||
let g:ale_run_synchronously = 1
|
||||
let g:ale_pattern_options = {}
|
||||
let g:ale_pattern_options_enabled = 1
|
||||
|
||||
unlet! b:ale_enabled
|
||||
|
||||
|
|
Reference in a new issue