diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-07-14 09:06:36 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-14 09:06:36 -0400 |
commit | f693b4043d29ec21d990661450cdbd353da0e036 (patch) | |
tree | 4e06241295ab8e32358a06eff245431daae52d24 /src/nvim/memline.c | |
parent | bf6b0e3c0aa34beca13eee898decdf0fcde8b502 (diff) | |
parent | 0ceebc2c913cc497735e001772cb6b395c36cecc (diff) | |
download | rneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.gz rneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.bz2 rneovim-f693b4043d29ec21d990661450cdbd353da0e036.zip |
Merge #846 'impl mch_open with libuv'
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 2627d98292..2fb404a148 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -440,7 +440,7 @@ void ml_setname(buf_T *buf) } if (mfp->mf_fd == -1) { /* need to (re)open the swap file */ - mfp->mf_fd = mch_open((char *)mfp->mf_fname, O_RDWR, 0); + mfp->mf_fd = os_open((char *)mfp->mf_fname, O_RDWR, 0); if (mfp->mf_fd < 0) { /* could not (re)open the swap file, what can we do???? */ EMSG(_("E301: Oops, lost the swap file!!!")); @@ -1517,7 +1517,7 @@ static time_t swapfile_info(char_u *fname) /* * print the original file name */ - fd = mch_open((char *)fname, O_RDONLY, 0); + fd = os_open((char *)fname, O_RDONLY, 0); if (fd >= 0) { if (read_eintr(fd, &b0, sizeof(b0)) == sizeof(b0)) { if (STRNCMP(b0.b0_version, "VIM 3.0", 7) == 0) { @@ -3329,7 +3329,7 @@ findswapname ( * Try to read block 0 from the swap file to get the original * file name (and inode number). */ - fd = mch_open((char *)fname, O_RDONLY, 0); + fd = os_open((char *)fname, O_RDONLY, 0); if (fd >= 0) { if (read_eintr(fd, &b0, sizeof(b0)) == sizeof(b0)) { /* |