diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-14 10:28:36 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-14 10:28:36 +0000 |
commit | 16e7dc2371f908204e5191c0e9d55626352097af (patch) | |
tree | 04e40db20efea0cf135728c40f658306c9d87cf6 /autoload/ale/list.vim | |
parent | d8f9aef84a1271633cb4fc7ba7a063e4b922d56b (diff) | |
download | ale-16e7dc2371f908204e5191c0e9d55626352097af.zip |
Fix #1069 Support formatting the loclist messages with g:ale_loclist_msg_format
Diffstat (limited to 'autoload/ale/list.vim')
-rw-r--r-- | autoload/ale/list.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim index ecf088ae..fbc71efc 100644 --- a/autoload/ale/list.vim +++ b/autoload/ale/list.vim @@ -41,13 +41,16 @@ function! s:FixList(list) abort let l:new_list = [] for l:item in a:list + let l:fixed_item = copy(l:item) + + let l:fixed_item.text = ale#GetLocItemMessage( + \ l:item, + \ g:ale_loclist_msg_format, + \) + if l:item.bufnr == -1 " If the buffer number is invalid, remove it. - let l:fixed_item = copy(l:item) call remove(l:fixed_item, 'bufnr') - else - " Don't copy the Dictionary if we do not need to. - let l:fixed_item = l:item endif call add(l:new_list, l:fixed_item) |