Expand description
Diff-line renderers shared by the status screen’s inline diffs and the diff view (syntax = fg, diff kind = bg, emphasis = stronger bg).
Structs§
Enums§
- Mark
- What colours a byte range of a line’s text beyond its syntax.
Functions§
- diff_
line_ height - file_
gutter_ width - fold_
row - hunk_
gutter_ width - The floor of 4 keeps neighbouring hunks from disagreeing on width.
- hunk_
header - line_
syntax - render_
diff_ line - render_
hunk_ lines - Index 0 of the result is the
@@header, the rest map 1:1 tohunk.lines;selectedindexes the result. - render_
split_ pair - split_
pair_ height - Must agree with
render_split_pair’s wrapping. - syntax_
row numbercounts from 1.
Type Aliases§
- Side
Syntax - Per-file syntax for both diff sides,
(old, new), each indexed by line number. - Split
Cell - One side of a side-by-side row,
Nonefor a column with no counterpart.