Use &l:equalprg so local options do not override global ones

This commit is contained in:
w0rp
2018-08-17 10:10:49 +01:00
parent ad8b260519
commit 61a0716837
3 changed files with 4 additions and 4 deletions

View File

@@ -243,7 +243,7 @@ endfunction
" (name, func, filetypes, desc, aliases)
function! ale#fix#registry#Add(name, func, filetypes, desc, ...) abort
" This command will throw from the sandbox.
let &equalprg=&equalprg
let &l:equalprg=&l:equalprg
if type(a:name) isnot v:t_string
throw '''name'' must be a String'