Skip to content

fix: Fall back to direct output when pager spawn fails - #61

Merged
max-sixty merged 1 commit into
mainfrom
pager
Nov 29, 2025
Merged

fix: Fall back to direct output when pager spawn fails#61
max-sixty merged 1 commit into
mainfrom
pager

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Gracefully fall back to printing help text directly to stderr if the pager (e.g., less) fails to spawn
  • Handles the case where less is not installed (common on minimal systems or Windows without Git for Windows)
  • Only applies to spawn failures; write/wait errors still propagate (these typically mean the user quit early)

Test plan

  • cargo test --lib passes
  • Manually test wt --help with PAGER=nonexistent to verify fallback works

🤖 Generated with Claude Code

If pager (e.g., less) is not installed, gracefully degrade to printing
help text directly to stderr instead of returning an error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty
max-sixty merged commit f7d3afc into main Nov 29, 2025
14 checks passed
@max-sixty
max-sixty deleted the pager branch November 29, 2025 18:29
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.

1 participant