Skip to content

Commit

Permalink
Fixes an index error with Java files. (#3706)
Browse files Browse the repository at this point in the history
Co-authored-by: w0rp <w0rp@users.noreply.github.com>
  • Loading branch information
stbraun and w0rp committed Jun 22, 2021
1 parent 397d56f commit a4ba421
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ale_linters/java/javac.vim
Expand Up @@ -132,7 +132,9 @@ function! ale_linters#java#javac#Handle(buffer, lines) abort

for l:match in ale#util#GetMatches(a:lines, [l:pattern, l:col_pattern, l:symbol_pattern])
if empty(l:match[2]) && empty(l:match[3])
let l:output[-1].col = len(l:match[1])
if !empty(l:match[1]) && !empty(l:output)
let l:output[-1].col = len(l:match[1])
endif
elseif empty(l:match[3])
" Add symbols to 'cannot find symbol' errors.
if l:output[-1].text is# 'error: cannot find symbol'
Expand Down

0 comments on commit a4ba421

Please sign in to comment.