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
F15553903: D21252.id50608.diff
Mon, Apr 28, 4:24 AM
F15549345: D21252.id50613.diff
Sun, Apr 27, 5:11 AM
F15517752: D21252.diff
Sat, Apr 19, 8:11 AM
F15506027: D21252.diff
Tue, Apr 15, 7:59 AM
F15463630: D21252.id50608.diff
Wed, Apr 2, 1:38 AM
F15462822: D21252.id50613.diff
Tue, Apr 1, 5:56 PM
F15459103: D21252.id50613.diff
Mon, Mar 31, 9:52 AM
F15458588: D21252.id.diff
Mon, Mar 31, 5:13 AM
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
Branch
inline1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24425
Build 33655: Run Core Tests
Build 33654: arc lint + arc unit

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.