Expand description

Calculating which modified lines should be displayed together.

Structs

Hunk 🔒
A hunk represents a series of modified lines that are displayed together.

Constants

The maximum number of lines that may occur between changed lines in a hunk.

Functions

Given a slice of line pairs that are ordered as far as possible, but may refer to earlier lines, return line pairs that are monotonically increasing. If an earlier line occurs after a later line, replace that line with None.
Split lines into hunks.
Given a sequence of novel MatchedPos values in a section between two unchanged MatchedPos values, return them in an order suited for displaying.
Return a vec of novel MatchedPos values in an order suited for displaying.