diff options
author | Hinidu <hinidu@gmail.com> | 2014-04-04 00:35:33 +0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-04 16:03:55 -0300 |
commit | b83600f5a3e6be2a8123a74595fe297759a57736 (patch) | |
tree | 4d8b328ac1618ed5b6aa199825d684336740fa18 /src/ex_cmds.c | |
parent | a3ff83ce7efa54f65a6815aefa178fde6504a6e7 (diff) | |
download | rneovim-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.c | 2 |
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); } |