summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-04-16 13:33:29 +0100
committerw0rp <devw0rp@gmail.com>2019-04-16 13:44:43 +0100
commit59f8c35a2fcfbc032de6115da0d5ab0bd38db035 (patch)
tree03548190046b673176f6a9d75a5b6581760ad958 /autoload
parent24d277384ce98f4e38f0bfdf45a9cebbf940b213 (diff)
downloadale-59f8c35a2fcfbc032de6115da0d5ab0bd38db035.zip
Fix #1930 - Finish ale_fix_on_save_ignore
* Implementation had a bug * Documentation added * Tests added
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim
index f5a3c0c2..92ae3e14 100644
--- a/autoload/ale/fix.vim
+++ b/autoload/ale/fix.vim
@@ -270,13 +270,13 @@ endfunction
function! s:IgnoreFixers(callback_list, filetype, config) abort
if type(a:config) is v:t_list
let l:ignore_list = a:config
- endif
-
- let l:ignore_list = []
+ else
+ let l:ignore_list = []
- for l:part in split(a:filetype , '\.')
- call extend(l:ignore_list, get(a:config, l:part, []))
- endfor
+ for l:part in split(a:filetype , '\.')
+ call extend(l:ignore_list, get(a:config, l:part, []))
+ endfor
+ endif
call filter(a:callback_list, 'index(l:ignore_list, v:val) < 0')
endfunction