From a294a0e1c598179409490991de071bd4957ae2e7 Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Tue, 27 May 2014 19:23:00 +0200 Subject: FileID: refactor buffer.c to use `FileID` --- src/nvim/fileio.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/nvim/fileio.c') diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 129f1a1de2..6f21679549 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -3433,10 +3433,11 @@ restore_backup: (void)os_setperm(wfname, perm); } # endif - buf_setino(buf); - } else if (!buf->b_dev_valid) - /* Set the inode when creating a new file. */ - buf_setino(buf); + buf_set_file_id(buf); + } else if (!buf->file_id_valid) { + // Set the file_id when creating a new file. + buf_set_file_id(buf); + } #endif if (close(fd) != 0) { -- cgit