mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
cleanup: remove mch_fopen in favor of os_fopen
This commit is contained in:
@@ -863,7 +863,7 @@ qf_init_ext(
|
||||
fields.errmsg = xmalloc(fields.errmsglen);
|
||||
fields.pattern = xmalloc(CMDBUFFSIZE + 1);
|
||||
|
||||
if (efile != NULL && (state.fd = mch_fopen((char *)efile, "r")) == NULL) {
|
||||
if (efile != NULL && (state.fd = os_fopen((char *)efile, "r")) == NULL) {
|
||||
EMSG2(_(e_openerrf), efile);
|
||||
goto qf_init_end;
|
||||
}
|
||||
@@ -5495,7 +5495,7 @@ void ex_helpgrep(exarg_T *eap)
|
||||
+ STRLEN(fnames[fi]) - 3, 3) == 0)) {
|
||||
continue;
|
||||
}
|
||||
fd = mch_fopen((char *)fnames[fi], "r");
|
||||
fd = os_fopen((char *)fnames[fi], "r");
|
||||
if (fd != NULL) {
|
||||
lnum = 1;
|
||||
while (!vim_fgets(IObuff, IOSIZE, fd) && !got_int) {
|
||||
|
Reference in New Issue
Block a user