Replace mch_rename and vim_rename with libuv

This commit is contained in:
Hinidu
2014-04-01 23:27:39 +03:00
committed by Thiago de Arruda
parent 86b6f1ccff
commit a3ff83ce7e
8 changed files with 88 additions and 197 deletions

View File

@@ -1711,7 +1711,7 @@ void write_viminfo(char_u *file, int forceit)
* In case of an error keep the original viminfo file.
* Otherwise rename the newly written file.
*/
if (viminfo_errcnt || vim_rename(tempname, fname) == -1)
if (viminfo_errcnt || os_rename(tempname, fname) == FAIL)
mch_remove(tempname);
}