diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-22 22:31:46 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-22 22:31:46 +0100 |
commit | 846bfb47b2e213c5627eb614f7a436089c1b4896 (patch) | |
tree | d38fea57c2c4ad6ce017b891c4e4b625160a97ef /autoload | |
parent | 81a8c77d2062fb7b9bb85d2835a64f01b80bb2a4 (diff) | |
download | ale-846bfb47b2e213c5627eb614f7a436089c1b4896.zip |
Remove the redundant fix_buffer_data vars and filename variables
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale.vim | 7 | ||||
-rw-r--r-- | autoload/ale/fix.vim | 2 |
2 files changed, 1 insertions, 8 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 diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 62674b87..8dfdeca8 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -420,9 +420,7 @@ function! ale#fix#InitBufferData(buffer, fixing_flag) abort " The 'done' flag tells the function for applying changes when fixing " is complete. let g:ale_fix_buffer_data[a:buffer] = { - \ 'vars': getbufvar(a:buffer, ''), \ 'lines_before': getbufline(a:buffer, 1, '$'), - \ 'filename': expand('#' . a:buffer . ':p'), \ 'done': 0, \ 'should_save': a:fixing_flag is# 'save_file', \ 'temporary_directory_list': [], |