diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-09-04 01:22:25 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-09-04 01:22:25 -0400 |
commit | d66cd61b79d6d592436c4552dbdddb904dd1c22e (patch) | |
tree | 85e4651f4d56f6dc5b61df65eff9da9dd83ecce2 /src/nvim/ex_cmds2.c | |
parent | 3051015f8907445bbb193a0781c75f9cdc54236e (diff) | |
parent | 7ac191ab1085875319e139b044ec1f98498b87ce (diff) | |
download | rneovim-d66cd61b79d6d592436c4552dbdddb904dd1c22e.tar.gz rneovim-d66cd61b79d6d592436c4552dbdddb904dd1c22e.tar.bz2 rneovim-d66cd61b79d6d592436c4552dbdddb904dd1c22e.zip |
Merge pull request #1054 from stefan991/fileinfo-getter
FileInfo getters for `filesize`, `hardlinks` and `blocksize`
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 3809858875..ac91b2a6ac 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2417,13 +2417,13 @@ do_source ( */ save_current_SID = current_SID; FileID file_id; - bool file_id_ok = os_get_file_id((char *)fname_exp, &file_id); + bool file_id_ok = os_fileid((char *)fname_exp, &file_id); for (current_SID = script_items.ga_len; current_SID > 0; --current_SID) { si = &SCRIPT_ITEM(current_SID); // Compare dev/ino when possible, it catches symbolic links. // Also compare file names, the inode may change when the file was edited. bool file_id_equal = file_id_ok && si->file_id_valid - && os_file_id_equal(&(si->file_id), &file_id); + && os_fileid_equal(&(si->file_id), &file_id); if (si->sn_name != NULL && (file_id_equal || fnamecmp(si->sn_name, fname_exp) == 0)) { break; |