mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
removed mch_remove macro
This commit is contained in:

committed by
Thiago de Arruda

parent
445f31f076
commit
a1df458524
@@ -1207,9 +1207,9 @@ filterend:
|
||||
EMSG(_("E135: *Filter* Autocommands must not change current buffer"));
|
||||
}
|
||||
if (itmp != NULL)
|
||||
mch_remove(itmp);
|
||||
os_remove((char *)itmp);
|
||||
if (otmp != NULL)
|
||||
mch_remove(otmp);
|
||||
os_remove((char *)otmp);
|
||||
vim_free(itmp);
|
||||
vim_free(otmp);
|
||||
}
|
||||
@@ -1712,9 +1712,9 @@ 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)
|
||||
mch_remove(tempname);
|
||||
|
||||
if (viminfo_errcnt || vim_rename(tempname, fname) == -1) {
|
||||
os_remove((char *)tempname);
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
Reference in New Issue
Block a user