1
0
forked from aniani/vim

updated for version 7.0161

This commit is contained in:
Bram Moolenaar
2005-11-28 22:58:23 +00:00
parent a39571032c
commit 9835862c81
3 changed files with 82 additions and 1 deletions

View File

@@ -3150,8 +3150,10 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|| st.st_mode != perm)
backup_copy = TRUE;
# endif
mch_remove(IObuff);
/* Close the file before removing it, on MS-Windows we
* can't delete an open file. */
close(fd);
mch_remove(IObuff);
}
}
}