eval: Flush buffer in write_list

This way success/failure return from this function is more precise.
This commit is contained in:
ZyX 2017-02-23 01:49:05 +03:00
parent 0086991b1b
commit 31cdb227ba

View File

@ -18069,6 +18069,9 @@ static bool write_list(FileDescriptor *const fp, const list_T *const list,
}
}
}
if ((error = file_fsync(fp)) != 0) {
goto write_list_error;
}
return true;
write_list_error:
emsgf(_("E80: Error while writing: %s"), os_strerror(error));