aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-07-14 09:06:36 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-07-14 09:06:36 -0400
commitf693b4043d29ec21d990661450cdbd353da0e036 (patch)
tree4e06241295ab8e32358a06eff245431daae52d24 /src/nvim/undo.c
parentbf6b0e3c0aa34beca13eee898decdf0fcde8b502 (diff)
parent0ceebc2c913cc497735e001772cb6b395c36cecc (diff)
downloadrneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.gz
rneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.bz2
rneovim-f693b4043d29ec21d990661450cdbd353da0e036.zip
Merge #846 'impl mch_open with libuv'
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index cb40878b43..b9f3309cef 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1045,7 +1045,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
if (os_file_exists(file_name)) {
if (name == NULL || !forceit) {
/* Check we can read it and it's an undo file. */
- fd = mch_open((char *)file_name, O_RDONLY, 0);
+ fd = os_open((char *)file_name, O_RDONLY, 0);
if (fd < 0) {
if (name != NULL || p_verbose > 0) {
if (name == NULL)
@@ -1089,7 +1089,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
goto theend;
}
- fd = mch_open((char *)file_name,
+ fd = os_open((char *)file_name,
O_CREAT|O_WRONLY|O_EXCL|O_NOFOLLOW, perm);
if (fd < 0) {
EMSG2(_(e_not_open), file_name);