diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-26 11:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 11:18:19 +0200 |
commit | b42bfa599b3fc15d0b613cfcff8c742e57854cf3 (patch) | |
tree | 14de0a1eb8da856c567256a9b8acf6e5d0005c4f /src/nvim/ex_cmds.c | |
parent | 8a9c9a996322a1d111c55efb156710add68da358 (diff) | |
parent | 2731080212fad1430becae0cb56fe33238e7e24a (diff) | |
download | rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.tar.gz rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.tar.bz2 rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.zip |
Merge #10589 'os/fs: introduce os_fopen()'
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 8e12ad8366..9a2b683bac 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -4557,7 +4557,7 @@ void ex_help(exarg_T *eap) } else { // There is no help window yet. // Try to open the file specified by the "helpfile" option. - if ((helpfd = mch_fopen((char *)p_hf, READBIN)) == NULL) { + if ((helpfd = os_fopen((char *)p_hf, READBIN)) == NULL) { smsg(_("Sorry, help file \"%s\" not found"), p_hf); goto erret; } @@ -5087,7 +5087,7 @@ void fix_help_buffer(void) continue; } - FILE *const fd = mch_fopen((char *)fnames[fi], "r"); + FILE *const fd = os_fopen((char *)fnames[fi], "r"); if (fd == NULL) { continue; } @@ -5223,7 +5223,7 @@ static void helptags_one(char_u *const dir, const char_u *const ext, return; } - FILE *const fd_tags = mch_fopen((char *)NameBuff, "w"); + FILE *const fd_tags = os_fopen((char *)NameBuff, "w"); if (fd_tags == NULL) { EMSG2(_("E152: Cannot open %s for writing"), NameBuff); FreeWild(filecount, files); @@ -5247,7 +5247,7 @@ static void helptags_one(char_u *const dir, const char_u *const ext, * Go over all the files and extract the tags. */ for (int fi = 0; fi < filecount && !got_int; fi++) { - FILE *const fd = mch_fopen((char *)files[fi], "r"); + FILE *const fd = os_fopen((char *)files[fi], "r"); if (fd == NULL) { EMSG2(_("E153: Unable to open %s for reading"), files[fi]); continue; |