From 71d34fc0c6eba0935b97a8d9dc5fd29c432be452 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 16 Nov 2017 09:34:24 +0000 Subject: Fix #1132 - Parse react error codes again for ESLint --- autoload/ale/handlers/eslint.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim index adfb65be..ff590162 100644 --- a/autoload/ale/handlers/eslint.vim +++ b/autoload/ale/handlers/eslint.vim @@ -133,8 +133,9 @@ function! ale#handlers#eslint#Handle(buffer, lines) abort let l:obj.type = 'W' endif + " The code can be something like 'Error/foo/bar', or just 'Error' if !empty(get(l:split_code, 1)) - let l:obj.code = l:split_code[1] + let l:obj.code = join(l:split_code[1:], '/') endif for l:col_match in ale#util#GetMatches(l:text, s:col_end_patterns) -- cgit v1.2.3