summaryrefslogtreecommitdiff
path: root/autoload/ale.vim
diff options
context:
space:
mode:
authorsridhars <sridhars@users.noreply.github.com>2018-07-24 16:42:26 -0500
committerGitHub <noreply@github.com>2018-07-24 16:42:26 -0500
commit4446cf15bea403204b5097f1bfc74267af32553c (patch)
tree325b0370a3b511efa2a498ee6959fe16c56c1b20 /autoload/ale.vim
parent0da4c6e4ad009a37b482d301a19b6d024aa0ae0a (diff)
parent341857477011f703664b31d8d76f6872f8399c66 (diff)
downloadale-4446cf15bea403204b5097f1bfc74267af32553c.zip
Merge pull request #1 from w0rp/master
update
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r--autoload/ale.vim7
1 files changed, 1 insertions, 6 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index 26c73547..6d1e8521 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -192,12 +192,7 @@ endfunction
" Every variable name will be prefixed with 'ale_'.
function! ale#Var(buffer, variable_name) abort
let l:full_name = 'ale_' . a:variable_name
- let l:vars = getbufvar(str2nr(a:buffer), '', 0)
-
- if l:vars is 0
- " Look for variables from deleted buffers, saved from :ALEFix
- let l:vars = get(get(g:ale_fix_buffer_data, a:buffer, {}), 'vars', {})
- endif
+ let l:vars = getbufvar(str2nr(a:buffer), '', {})
return get(l:vars, l:full_name, g:[l:full_name])
endfunction