aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-08 18:12:28 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-06-09 00:12:28 +0200
commit0b4c53fc23581abb14b6d4c567dc08720f509020 (patch)
tree39dbdb8dc163206cd626ec8a35063d0bfdab7a57 /src/nvim/fileio.c
parent93afb347124dff6e2a67254342bc2d822eed52df (diff)
downloadrneovim-0b4c53fc23581abb14b6d4c567dc08720f509020.tar.gz
rneovim-0b4c53fc23581abb14b6d4c567dc08720f509020.tar.bz2
rneovim-0b4c53fc23581abb14b6d4c567dc08720f509020.zip
vim-patch:8.0.1305: writefile() never calls fsync() #10153
Problem: Writefile() never calls fsync(). Solution: Follow the 'fsync' option with override to enable or disable. https://github.com/vim/vim/commit/7567d0b115e332f61a9f390aaccdf7825b891227
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index e2b77d9605..f2a664288b 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -3363,7 +3363,7 @@ restore_backup:
if (p_fs && (error = os_fsync(fd)) != 0 && !device
// fsync not supported on this storage.
&& error != UV_ENOTSUP) {
- SET_ERRMSG_ARG(_("E667: Fsync failed: %s"), error);
+ SET_ERRMSG_ARG(e_fsync, error);
end = 0;
}