Skip to content

fix: respect --paging=never for --list-languages#3835

Open
ychampion wants to merge 2 commits into
sharkdp:masterfrom
ychampion:fix-list-languages-paging-never
Open

fix: respect --paging=never for --list-languages#3835
ychampion wants to merge 2 commits into
sharkdp:masterfrom
ychampion:fix-list-languages-paging-never

Conversation

@ychampion

Copy link
Copy Markdown

Summary

  • Respect the resolved paging mode when rendering --list-languages.
  • Add a regression for --list-languages --paging=never.

Why

--list-languages built a temporary plain config with PagingMode::QuitIfOneScreen, so an explicit --paging=never was ignored and the command still used the pager. Fixes #3825.

Validation

  • PAGER='echo pager-output' cargo run --quiet -- --list-languages --paging=never | head -n 5 — reproduced pager-output before the fix
  • cargo test list_languages --test integration_tests -- --nocapture — passed
  • cargo fmt -- --check — passed
  • cargo clippy --locked --bin bat --test integration_tests -- -D warnings — passed
  • git diff --check — passed

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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.

--list-languages ignores --paging=never (from config file or CLI)

1 participant