summaryrefslogtreecommitdiffstats
path: root/tests/fmt/width.sh
AgeCommit message (Collapse)AuthorLines
2026-01-08fmt: interpret -w as an inclusive maximumPádraig Brady-0/+40
This aligns with `fold -w` and BSD `fmt` implementations. * src/fmt.c (fmt_paragraph): Check len <= max_width. * tests/fmt/width.sh: Add a new test. * tests/local.mk: Reference the new test. * NEWS: Mention the change in behavior. Addresses part of https://bugs.gnu.org/79497