From ecbb27680563a50d4dd981f968d659ef20bfbe30 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 11 Feb 2017 19:40:57 +0000 Subject: Replace every stdin-wrapper script with the new %t formatting support --- ale_linters/scala/scalac.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ale_linters/scala/scalac.vim') diff --git a/ale_linters/scala/scalac.vim b/ale_linters/scala/scalac.vim index c2e7543c..6f462068 100644 --- a/ale_linters/scala/scalac.vim +++ b/ale_linters/scala/scalac.vim @@ -1,4 +1,3 @@ -" vim: set et: " Author: Zoltan Kalmar - https://github.com/kalmiz " Description: Basic scala support using scalac @@ -21,8 +20,10 @@ function! ale_linters#scala#scalac#Handle(buffer, lines) abort let l:text = l:match[3] let l:type = l:match[2] ==# 'error' ? 'E' : 'W' let l:col = 0 + if l:ln + 1 < len(a:lines) let l:col = stridx(a:lines[l:ln + 1], '^') + if l:col == -1 let l:col = 0 endif @@ -47,6 +48,6 @@ call ale#linter#Define('scala', { \ 'name': 'scalac', \ 'executable': 'scalac', \ 'output_stream': 'stderr', -\ 'command': g:ale#util#stdin_wrapper . ' .scala scalac -Ystop-after:parser', +\ 'command': 'scalac -Ystop-after:parser %t', \ 'callback': 'ale_linters#scala#scalac#Handle', \}) -- cgit v1.2.3