summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-12-23 22:13:51 +0000
committerBram Moolenaar <Bram@vim.org>2005-12-23 22:13:51 +0000
commit8fa0445c4f8dc3b1519fc8f6365005cd3fcdce8b (patch)
tree32b400ed061d21295beb40502f666a2f2b783b7d /src/fileio.c
parent5c2f050d91238962d2ea4895c5613030ec212459 (diff)
downloadvim-8fa0445c4f8dc3b1519fc8f6365005cd3fcdce8b.zip
updated for version 7.0176
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 1ff4e4609..c21035ce1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4201,6 +4201,9 @@ restore_backup:
# endif
buf_setino(buf);
}
+ else if (buf->b_dev < 0)
+ /* Set the inode when creating a new file. */
+ buf_setino(buf);
#endif
if (close(fd) != 0)