summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-11 13:06:27 +0100
committerw0rp <devw0rp@gmail.com>2018-07-11 13:38:22 +0100
commit1fc3a1563baffb4a38a1a1c38df4372c0d69070a (patch)
tree454849eb62a4fa5ba65b4acc98f51422e33f60da
parenta31f54d08fbcf08d35a9c568c70d62ae45dcbf65 (diff)
downloadale-1fc3a1563baffb4a38a1a1c38df4372c0d69070a.zip
Update the sandbox test now that functions can be defined in the sandbox
-rw-r--r--autoload/ale/util.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim
index d7b6904c..267b0587 100644
--- a/autoload/ale/util.vim
+++ b/autoload/ale/util.vim
@@ -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