Skip to content

Avoid E151 when generating helptags without Vim help files - #47

Merged
Shougo merged 3 commits into
mainfrom
copilot/dpp-fix-invalid-helptags
Sep 14, 2026
Merged

Shougo merged 3 commits into
mainfrom
copilot/dpp-fix-invalid-helptags

Conversation

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

dpp#make_state() could invoke :helptags for a non-empty documentation directory containing no .txt files, causing Neovim error E151.

  • Detection: Recursively detect actual .txt help files before invoking :helptags.
  • Regression coverage: Verify empty directories and non-help files are skipped, while nested help files are detected.
if (await hasHelpFiles(docDir)) {
  await denops.cmd(`silent helptags ${docDir}`);
}

Copilot AI and others added 2 commits September 14, 2026 03:30
Co-authored-by: Shougo <41495+Shougo@users.noreply.github.com>
Co-authored-by: Shougo <41495+Shougo@users.noreply.github.com>
@Shougo
Shougo merged commit 5ff0aff into main Sep 14, 2026
3 checks passed
@Shougo
Shougo deleted the copilot/dpp-fix-invalid-helptags branch September 14, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants