Page MenuHomePhabricator

Fix an issue where the last line of block-based diffs could be incorrectly hidden
ClosedPublic

Authored by epriestley on Jan 30 2020, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jul 11 2026, 12:18 AM
Unknown Object (File)
Jul 5 2026, 2:24 AM
Unknown Object (File)
Jul 4 2026, 5:32 PM
Unknown Object (File)
Jun 29 2026, 12:23 PM
Unknown Object (File)
Jun 22 2026, 1:21 AM
Unknown Object (File)
Apr 10 2026, 7:21 PM
Unknown Object (File)
Apr 5 2026, 9:46 PM
Unknown Object (File)
Mar 29 2026, 10:49 AM
Subscribers
None

Details

Summary

Fixes T13468. See that task for discussion. The older source-rendering code mixes "line number" / "1-based" lists with "block number" / "0-based" lists and then has other bugs which cancel this out.

For block-based diffs, build an explicit block-based mask with only block numbers. This sort of sidesteps the whole issue.

Test Plan

Viewed the diff with the original reproduction case, plus various other block-based diffs, including one-block image diffs, in unified and side-by-side mode. Didn't spot any oddities.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable