#852 Pass on error codes in the loclist corrections

This commit is contained in:
w0rp
2017-11-13 23:34:00 +00:00
parent 8a3a2da87e
commit fea708cff3
2 changed files with 25 additions and 0 deletions

View File

@@ -374,6 +374,10 @@ function! ale#engine#FixLocList(buffer, linter_name, loclist) abort
\ 'linter_name': a:linter_name,
\}
if has_key(l:old_item, 'code')
let l:item.code = l:old_item.code
endif
if has_key(l:old_item, 'filename')
\&& !ale#path#IsTempName(l:old_item.filename)
" Use the filename given.