mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
eval: Flush buffer in write_list
This way success/failure return from this function is more precise.
This commit is contained in:
parent
0086991b1b
commit
31cdb227ba
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user