diff options
Diffstat (limited to 'src/nvim/help.c')
-rw-r--r-- | src/nvim/help.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nvim/help.c b/src/nvim/help.c index 8c7c19e7c3..4602ddd40e 100644 --- a/src/nvim/help.c +++ b/src/nvim/help.c @@ -1162,10 +1162,17 @@ static void do_helptags(char *dirname, bool add_help_tags, bool ignore_writeerr) FreeWild(filecount, files); } -static void helptags_cb(char *fname, void *cookie) +static bool helptags_cb(int num_fnames, char **fnames, bool all, void *cookie) FUNC_ATTR_NONNULL_ALL { - do_helptags(fname, *(bool *)cookie, true); + for (int i = 0; i < num_fnames; i++) { + do_helptags(fnames[i], *(bool *)cookie, true); + if (!all) { + return true; + } + } + + return num_fnames > 0; } /// ":helptags" |