diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-11 18:19:01 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-11 18:19:01 +0000 |
commit | beeef28b1a6373c324fb8c5c8b5ec8bb77181431 (patch) | |
tree | cb439efdfe11cace8a9ea19d9165b93afcccd315 /autoload | |
parent | 03ab963d1a02b0f4d45fb10915efa9fd9c5deaf7 (diff) | |
download | ale-beeef28b1a6373c324fb8c5c8b5ec8bb77181431.zip |
Use writefile() for temporary files, which works better
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/engine.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 803fd6dc..6815f395 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -333,7 +333,7 @@ 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. - silent! exec 'write' a:temporary_file + call writefile(getbufline(a:buffer, 1, '$'), a:temporary_file) return 1 endfunction |