diff options
author | Daniel Xu <danobi@users.noreply.github.com> | 2016-07-05 22:40:25 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-07-06 01:40:25 -0400 |
commit | 5f1a153831d480180b2203120cff776d771ec1a4 (patch) | |
tree | 09fc7791734a1e3ed5a72c6e8195707db7e2ece4 /src/nvim/undo.c | |
parent | bd6dad06dd1f4182cc65c41575af8bf1e3ea22a9 (diff) | |
download | rneovim-5f1a153831d480180b2203120cff776d771ec1a4.tar.gz rneovim-5f1a153831d480180b2203120cff776d771ec1a4.tar.bz2 rneovim-5f1a153831d480180b2203120cff776d771ec1a4.zip |
os/fs: Rename os_file_exists to os_path_exists (#4973)
Because the old name did not indicate that the function
would return true on directories as well.
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index f16b4264d7..fc5d6acaa4 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -712,7 +712,7 @@ char *u_get_undo_file_name(const char *const buf_ffname, const bool reading) // When reading check if the file exists. if (undo_file_name != NULL - && (!reading || os_file_exists((char_u *)undo_file_name))) { + && (!reading || os_path_exists((char_u *)undo_file_name))) { break; } xfree(undo_file_name); @@ -1094,7 +1094,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf, /* If the undo file already exists, verify that it actually is an undo * file, and delete it. */ - if (os_file_exists((char_u *)file_name)) { + if (os_path_exists((char_u *)file_name)) { if (name == NULL || !forceit) { /* Check we can read it and it's an undo file. */ fd = os_open(file_name, O_RDONLY, 0); |