aboutsummaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 3e9c9c28ca..dc9680dd5b 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -7424,7 +7424,7 @@ open_exfile (
return NULL;
}
#endif
- if (!forceit && *mode != 'a' && vim_fexists(fname)) {
+ if (!forceit && *mode != 'a' && os_file_exists(fname)) {
EMSG2(_("E189: \"%s\" exists (add ! to override)"), fname);
return NULL;
}