Use &l:equalprg so local options do not override global ones
This commit is contained in:
parent
277313b58d
commit
3c6af5f68d
@ -243,7 +243,7 @@ endfunction
|
|||||||
" (name, func, filetypes, desc, aliases)
|
" (name, func, filetypes, desc, aliases)
|
||||||
function! ale#fix#registry#Add(name, func, filetypes, desc, ...) abort
|
function! ale#fix#registry#Add(name, func, filetypes, desc, ...) abort
|
||||||
" This command will throw from the sandbox.
|
" This command will throw from the sandbox.
|
||||||
let &equalprg=&equalprg
|
let &l:equalprg=&l:equalprg
|
||||||
|
|
||||||
if type(a:name) isnot v:t_string
|
if type(a:name) isnot v:t_string
|
||||||
throw '''name'' must be a String'
|
throw '''name'' must be a String'
|
||||||
|
@ -53,7 +53,7 @@ endfunction
|
|||||||
" Do not call this function.
|
" Do not call this function.
|
||||||
function! ale#linter#GetLintersLoaded() abort
|
function! ale#linter#GetLintersLoaded() abort
|
||||||
" This command will throw from the sandbox.
|
" This command will throw from the sandbox.
|
||||||
let &equalprg=&equalprg
|
let &l:equalprg=&l:equalprg
|
||||||
|
|
||||||
return s:linters
|
return s:linters
|
||||||
endfunction
|
endfunction
|
||||||
@ -295,7 +295,7 @@ endfunction
|
|||||||
|
|
||||||
function! ale#linter#Define(filetype, linter) abort
|
function! ale#linter#Define(filetype, linter) abort
|
||||||
" This command will throw from the sandbox.
|
" This command will throw from the sandbox.
|
||||||
let &equalprg=&equalprg
|
let &l:equalprg=&l:equalprg
|
||||||
|
|
||||||
if !has_key(s:linters, a:filetype)
|
if !has_key(s:linters, a:filetype)
|
||||||
let s:linters[a:filetype] = []
|
let s:linters[a:filetype] = []
|
||||||
|
@ -268,7 +268,7 @@ endfunction
|
|||||||
" See :help sandbox
|
" See :help sandbox
|
||||||
function! ale#util#InSandbox() abort
|
function! ale#util#InSandbox() abort
|
||||||
try
|
try
|
||||||
let &equalprg=&equalprg
|
let &l:equalprg=&l:equalprg
|
||||||
catch /E48/
|
catch /E48/
|
||||||
" E48 is the sandbox error.
|
" E48 is the sandbox error.
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user