diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-05-27 19:23:00 +0200 |
---|---|---|
committer | Stefan Hoffmann <stefan991@gmail.com> | 2014-06-27 13:59:28 +0200 |
commit | a294a0e1c598179409490991de071bd4957ae2e7 (patch) | |
tree | 9c51a88c89a5f99124e10d6334a7b73e782fa40f /src/nvim/fileio.c | |
parent | d8ec5ef88d77e4074c7376fda21276c2fc724f5d (diff) | |
download | rneovim-a294a0e1c598179409490991de071bd4957ae2e7.tar.gz rneovim-a294a0e1c598179409490991de071bd4957ae2e7.tar.bz2 rneovim-a294a0e1c598179409490991de071bd4957ae2e7.zip |
FileID: refactor buffer.c to use `FileID`
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 9 |
1 files changed, 5 insertions, 4 deletions
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) { |