diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-09 21:44:50 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-09 21:44:50 +0100 |
commit | f60df660f8af489af55270d205ad70a4b569742f (patch) | |
tree | c9dd1d75132c1f9f4b03be82f4ac469378af17c4 /plugin | |
parent | 8d390384f1bb279c601663e911f232cc32591f44 (diff) | |
download | ale-f60df660f8af489af55270d205ad70a4b569742f.zip |
#48 Store the linter name in the loclist objects for later use.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale/zmain.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim index b6ffdda3..37b4f294 100644 --- a/plugin/ale/zmain.vim +++ b/plugin/ale/zmain.vim @@ -134,6 +134,11 @@ function! s:HandleExit(job) " Make some adjustments to the loclists to fix common problems. call s:FixLoclist(buffer, linter_loclist) + " Remember which linter returned these items for later use. + for obj in linter_loclist + let obj.linter_name = linter.name + endfor + if g:ale_buffer_should_reset_map[buffer] let g:ale_buffer_should_reset_map[buffer] = 0 let g:ale_buffer_loclist_map[buffer] = [] |