Correct all Vint warnings

This commit is contained in:
w0rp
2016-10-08 23:55:58 +01:00
parent 16a150b277
commit 1ea0eda36c
4 changed files with 8 additions and 8 deletions

View File

@@ -22,14 +22,14 @@ function! ale_linters#haskell#ghc#Handle(buffer, lines)
for line in a:lines
if len(matchlist(line, pattern)) > 0
call add(corrected_lines, line)
if line !~ ': error:$'
if line !~# ': error:$'
call add(corrected_lines, '')
endif
elseif line == ''
elseif line ==# ''
call add(corrected_lines, line)
else
if len(corrected_lines) > 0
if corrected_lines[-1] =~ ': error:$'
if corrected_lines[-1] =~# ': error:$'
let line = substitute(line, '\v^\s+', ' ', '')
endif
let corrected_lines[-1] .= line