From 846bfb47b2e213c5627eb614f7a436089c1b4896 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 22 Jul 2018 22:31:46 +0100 Subject: Remove the redundant fix_buffer_data vars and filename variables --- autoload/ale.vim | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'autoload/ale.vim') 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 -- cgit v1.2.3