Fix #823 - Write Windows files with CRLF

This commit is contained in:
w0rp
2017-08-05 20:17:25 +01:00
parent 747d4fe80b
commit 593cafa18b
5 changed files with 65 additions and 3 deletions

View File

@@ -417,7 +417,8 @@ function! s:CreateTemporaryFileForJob(buffer, temporary_file) abort
" Automatically delete the directory later.
call ale#engine#ManageDirectory(a:buffer, l:temporary_directory)
" Write the buffer out to a file.
call writefile(getbufline(a:buffer, 1, '$'), a:temporary_file)
let l:lines = getbufline(a:buffer, 1, '$')
call ale#util#Writefile(a:buffer, l:lines, a:temporary_file)
return 1
endfunction