mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
eval: Flush buffer in write_list
This way success/failure return from this function is more precise.
This commit is contained in:
@@ -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;
|
return true;
|
||||||
write_list_error:
|
write_list_error:
|
||||||
emsgf(_("E80: Error while writing: %s"), os_strerror(error));
|
emsgf(_("E80: Error while writing: %s"), os_strerror(error));
|
||||||
|
Reference in New Issue
Block a user