Update the sandbox test now that functions can be defined in the sandbox

This commit is contained in:
w0rp 2018-07-11 13:06:27 +01:00
parent a31f54d08f
commit 1fc3a1563b
No known key found for this signature in database
GPG key ID: 0FC1ECAA8C81CD83

View file

@ -268,9 +268,8 @@ endfunction
" See :help sandbox
function! ale#util#InSandbox() abort
try
function! s:SandboxCheck() abort
endfunction
catch /^Vim\%((\a\+)\)\=:E48/
let &equalprg=&equalprg
catch /E48/
" E48 is the sandbox error.
return 1
endtry