diff options
author | w0rp <devw0rp@gmail.com> | 2018-08-02 21:45:04 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-08-02 21:45:16 +0100 |
commit | ccbdfcd76fe74232ee507d47f7edd9d447e3656a (patch) | |
tree | 4d43a289c83d3d7b9a4caac73bbf4da873aa12d1 /autoload | |
parent | 6b3086237ab32a4045a0ff70752714f9c16cdbfd (diff) | |
download | ale-ccbdfcd76fe74232ee507d47f7edd9d447e3656a.zip |
Include the error in the detailed error message in the GCC handler
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/gcc.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/autoload/ale/handlers/gcc.vim b/autoload/ale/handlers/gcc.vim index b8bac77f..72d639da 100644 --- a/autoload/ale/handlers/gcc.vim +++ b/autoload/ale/handlers/gcc.vim @@ -92,9 +92,12 @@ function! ale#handlers#gcc#HandleGCCFormat(buffer, lines) abort " the previous error parsed in output if l:match[4] is# 'note' if !empty(l:output) - let l:output[-1]['detail'] = - \ get(l:output[-1], 'detail', '') - \ . s:RemoveUnicodeQuotes(l:match[0]) . "\n" + if !has_key(l:output[-1], 'detail') + let l:output[-1].detail = l:output[-1].text + endif + + let l:output[-1].detail = l:output[-1].detail . "\n" + \ . s:RemoveUnicodeQuotes(l:match[0]) endif continue |