summaryrefslogtreecommitdiff
path: root/ale_linters/idris/idris.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/idris/idris.vim')
-rw-r--r--ale_linters/idris/idris.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/idris/idris.vim b/ale_linters/idris/idris.vim
index b3275b40..feac0f10 100644
--- a/ale_linters/idris/idris.vim
+++ b/ale_linters/idris/idris.vim
@@ -12,7 +12,7 @@ endfunction
function! ale_linters#idris#idris#Handle(buffer, lines) abort
" This was copied almost verbatim from ale#handlers#haskell#HandleGHCFormat
-
+ "
" Look for lines like the following:
" foo.idr:2:6:When checking right hand side of main with expected type
" bar.idr:11:11-13:
@@ -30,6 +30,7 @@ function! ale_linters#idris#idris#Handle(buffer, lines) abort
else
let l:corrected_lines[-1] .= l:line
endif
+
let l:corrected_lines[-1] = substitute(l:corrected_lines[-1], '\s\+', ' ', 'g')
endif
endfor