Page MenuHomePhabricator

Distinguish more carefully between "null" inline offsets and "0" inline offsets
ClosedPublic

Authored by epriestley on May 14 2020, 5:57 PM.
Tags
None
Referenced Files
F13042679: D21252.id.diff
Wed, Apr 17, 11:12 AM
Unknown Object (File)
Fri, Mar 22, 5:16 PM
Unknown Object (File)
Feb 14 2024, 4:02 AM
Unknown Object (File)
Dec 26 2023, 6:00 PM
Unknown Object (File)
Dec 25 2023, 1:04 PM
Unknown Object (File)
Dec 22 2023, 7:41 PM
Unknown Object (File)
Dec 14 2023, 12:34 PM
Unknown Object (File)
Dec 8 2023, 4:52 PM
Subscribers
None

Details

Summary

Ref T13513. Currently, when creating an inline by selecting a line range, slightly careless handling leads to an inline with "0" offsets (by passing "undefined" to the server). This causes the block to highlight every line except the last one as fully bright, which is incorrect.

An inline with "0" offsets and an inline with no offsets are different. Be more careful about passing offsets around and rendering them.

Test Plan
  • Used the line numbers to add an inline to lines 4-8 of a change.
  • Hovered the inline.
  • Saw all four lines marked as "dull"-highlighted (previously: three bright lines, one dull line).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 14 2020, 9:27 PM
This revision was automatically updated to reflect the committed changes.