aboutsummaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorHinidu <hinidu@gmail.com>2014-04-04 00:35:33 +0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-04 16:03:55 -0300
commitb83600f5a3e6be2a8123a74595fe297759a57736 (patch)
tree4d8b328ac1618ed5b6aa199825d684336740fa18 /src/ex_cmds.c
parenta3ff83ce7efa54f65a6815aefa178fde6504a6e7 (diff)
downloadrneovim-b83600f5a3e6be2a8123a74595fe297759a57736.tar.gz
rneovim-b83600f5a3e6be2a8123a74595fe297759a57736.tar.bz2
rneovim-b83600f5a3e6be2a8123a74595fe297759a57736.zip
Restore vim_rename
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 0c5ac107bf..d8839d213c 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 || os_rename(tempname, fname) == FAIL)
+ if (viminfo_errcnt || vim_rename(tempname, fname) == -1)
mch_remove(tempname);
}