From a3ff83ce7efa54f65a6815aefa178fde6504a6e7 Mon Sep 17 00:00:00 2001 From: Hinidu Date: Tue, 1 Apr 2014 23:27:39 +0300 Subject: Replace mch_rename and vim_rename with libuv --- src/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_cmds.c') diff --git a/src/ex_cmds.c b/src/ex_cmds.c index d8839d213c..0c5ac107bf 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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); } -- cgit