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)
Feb 19 2024, 6:06 AM
Unknown Object (File)
Feb 15 2024, 3:32 PM
Unknown Object (File)
Feb 3 2024, 11:35 PM
Unknown Object (File)
Jan 31 2024, 1:01 PM
Unknown Object (File)
Jan 28 2024, 12:31 PM
Unknown Object (File)
Jan 18 2024, 8:18 PM
Unknown Object (File)
Jan 18 2024, 8:11 PM
Unknown Object (File)
Dec 25 2023, 9:11 PM
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