aboutsummaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorHinidu <hinidu@gmail.com>2014-04-01 23:27:39 +0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-04 16:03:55 -0300
commita3ff83ce7efa54f65a6815aefa178fde6504a6e7 (patch)
tree0df15c6126a1a01fa9bbe46113ad7d787369d0e8 /src/ex_cmds.c
parent86b6f1ccff1ac0face3a0be4ae3e57bf608f8ea9 (diff)
downloadrneovim-a3ff83ce7efa54f65a6815aefa178fde6504a6e7.tar.gz
rneovim-a3ff83ce7efa54f65a6815aefa178fde6504a6e7.tar.bz2
rneovim-a3ff83ce7efa54f65a6815aefa178fde6504a6e7.zip
Replace mch_rename and vim_rename with libuv
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
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);
}