From f60df660f8af489af55270d205ad70a4b569742f Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 9 Oct 2016 21:44:50 +0100 Subject: [PATCH] #48 Store the linter name in the loclist objects for later use. --- plugin/ale/zmain.vim | 5 +++++ 1 file changed, 5 insertions(+) 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] = []