summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-25 17:23:16 +0100
committerw0rp <devw0rp@gmail.com>2017-05-25 17:23:21 +0100
commitc31cd12bdd941e9a326d89b21d187224c661c485 (patch)
treedc2009865dd64df394a16e0157f61437544bdb19 /autoload
parent6f76a840f0c79d15fe96f0df827cac75b79ae38f (diff)
downloadale-c31cd12bdd941e9a326d89b21d187224c661c485.zip
Simplify the sandbox check, to save on execution time
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/util.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim
index b796d638..03abacb7 100644
--- a/autoload/ale/util.vim
+++ b/autoload/ale/util.vim
@@ -80,13 +80,11 @@ endfunction
" See :help sandbox
function! ale#util#InSandbox() abort
try
- call setbufvar('%', '', '')
+ function! s:SandboxCheck() abort
+ endfunction
catch /^Vim\%((\a\+)\)\=:E48/
" E48 is the sandbox error.
return 1
- catch
- " If we're not in a sandbox, we'll get another error about an
- " invalid buffer variable name.
endtry
return 0