aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorDaniel Xu <danobi@users.noreply.github.com>2016-07-05 22:40:25 -0700
committerJustin M. Keyes <justinkz@gmail.com>2016-07-06 01:40:25 -0400
commit5f1a153831d480180b2203120cff776d771ec1a4 (patch)
tree09fc7791734a1e3ed5a72c6e8195707db7e2ece4 /src/nvim/ex_docmd.c
parentbd6dad06dd1f4182cc65c41575af8bf1e3ea22a9 (diff)
downloadrneovim-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/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 6864e2b914..ad17d4dcbd 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -7650,7 +7650,7 @@ open_exfile (
return NULL;
}
#endif
- if (!forceit && *mode != 'a' && os_file_exists(fname)) {
+ if (!forceit && *mode != 'a' && os_path_exists(fname)) {
EMSG2(_("E189: \"%s\" exists (add ! to override)"), fname);
return NULL;
}