Expand description
Line and word diff for the compare view (PLAN M12), using similar.
The result is a list of aligned rows: each row shows a line of the left
document, a line of the right one, or both. A missing side is a filler
row, so equal text stays side by side. Each side of a compare view is an
editor view whose Padding (from LineDiff::padding) puts those
blank rows into its display rows.
Structs§
Enums§
Constants§
- DIFF_
TIMEOUT - Give up refining a diff after this long and report a coarser one.
Functions§
- diff_
lines - Aligns the lines of
leftandright. Replaced blocks are paired line by line asChanged; the extra lines of the longer side areRemovedorAdded. - diff_
words - Byte ranges of the words that differ between two changed lines, on each side. Adjacent ranges are merged.