Use writefile() for temporary files, which works better

This commit is contained in:
w0rp 2017-02-11 18:19:01 +00:00
parent 03ab963d1a
commit beeef28b1a
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ function! s:CreateTemporaryFileForJob(buffer, temporary_file) abort
" Automatically delete the directory later. " Automatically delete the directory later.
call ale#engine#ManageDirectory(a:buffer, l:temporary_directory) call ale#engine#ManageDirectory(a:buffer, l:temporary_directory)
" Write the buffer out to a file. " Write the buffer out to a file.
silent! exec 'write' a:temporary_file call writefile(getbufline(a:buffer, 1, '$'), a:temporary_file)
return 1 return 1
endfunction endfunction