Fix #1930 - Finish ale_fix_on_save_ignore

* Implementation had a bug
* Documentation added
* Tests added
This commit is contained in:
w0rp committed 2019-04-16 13:44:43 +01:00
1 parent 24d277384c
commit 59f8c35a2f
3 files changed
+156 -6

No files matched your search

+6 -6
View File
@@ -270,14 +270,14 @@ endfunction
function! s:IgnoreFixers(callback_list, filetype, config) abort
if type(a:config) is v:t_list
let l:ignore_list = a:config
else
let l:ignore_list = []
for l:part in split(a:filetype , '\.')
call extend(l:ignore_list, get(a:config, l:part, []))
endfor
endif
let l:ignore_list = []
for l:part in split(a:filetype , '\.')
call extend(l:ignore_list, get(a:config, l:part, []))
endfor
call filter(a:callback_list, 'index(l:ignore_list, v:val) < 0')
endfunction