Fix bat crash with BusyBox less on Windows

- Retrieve less version earlier in src/output.rs.
- Skip -K argument if less is detected as BusyBox version.
- Reuses the version check for the existing --no-init logic.
- Fixes #3518.
This commit is contained in:
ANCHAL committed 2025-12-16 22:25:27 +05:30
1 parent 9bf344f760
commit fca5502f21
2 files changed
+8 -2

No files matched your search

+1
View File
@@ -5,6 +5,7 @@
- Improve native man pages and command help syntax highlighting by stripping overstriking, see #3517 (@akirk)
## Bugfixes
- Fix crash with BusyBox `less` on Windows, see #3518 (@Anchal-T)
- `--help` now correctly honors `--pager=builtin`. See #3516 (@keith-hall)
- `--help` now correctly honors custom themes. See #3524 (@keith-hall)