Files
oh-my-pi/packages/hashline/test
can1357 73ab005aac fix(hashline): weigh missing-closer repair against the whole-patch delimiter balance
The dropped-closer repair fired per replacement group, so a `SWAP` that
deleted a structural closer kept it even when another hunk had already
removed the matching opener (a deliberate wrapper removal) — leaving a
stray `}` and corrupting valid multi-hunk edits.

Defer the repair to a second pass that sums each hunk's delimiter delta
per contiguous hunk (so backtick/block-comment state never bleeds across
non-adjacent hunks), suppresses it when the matching opener was deleted or
replaced just above the range, and consumes the residual per repair so a
genuine missing closer elsewhere in the patch still fires.

Fixes #3142
2026-06-20 23:28:28 +02:00
..
2026-06-15 10:46:45 +02:00