aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memfile.c
diff options
context:
space:
mode:
authorMichael Reed <Pyrohh@users.noreply.github.com>2016-01-14 15:38:19 -0500
committerMichael Reed <Pyrohh@users.noreply.github.com>2016-01-14 15:38:19 -0500
commit964e52e81f25db64471b37252651c0da89d41d5a (patch)
tree8d629356c26a3cd6f98b1115ff8a6432d4013a64 /src/nvim/memfile.c
parent68550b0d639c959bf381c92641d87383ab72610f (diff)
parent62d137ce09692e7c85a489fce6ae07a7c7ad004c (diff)
downloadrneovim-964e52e81f25db64471b37252651c0da89d41d5a.tar.gz
rneovim-964e52e81f25db64471b37252651c0da89d41d5a.tar.bz2
rneovim-964e52e81f25db64471b37252651c0da89d41d5a.zip
Merge pull request #4009 from sethjackson/swapsync
[RFC] Remove 'swapsync'
Diffstat (limited to 'src/nvim/memfile.c')
-rw-r--r--src/nvim/memfile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/memfile.c b/src/nvim/memfile.c
index 9f5e4247b5..137c7c49d3 100644
--- a/src/nvim/memfile.c
+++ b/src/nvim/memfile.c
@@ -459,11 +459,9 @@ int mf_sync(memfile_T *mfp, int flags)
if (hp == NULL || status == FAIL)
mfp->mf_dirty = false;
- if ((flags & MFS_FLUSH) && *p_sws != NUL) {
- if (STRCMP(p_sws, "fsync") == 0) {
- if (os_fsync(mfp->mf_fd)) {
- status = FAIL;
- }
+ if (flags & MFS_FLUSH) {
+ if (os_fsync(mfp->mf_fd)) {
+ status = FAIL;
}
}