Skip to main content

compute_diff

Function compute_diff 

Source
pub fn compute_diff(
    pane: &PaneBuffer,
    prev: Option<&[Cell]>,
    generation: u64,
    cursor: CursorState,
) -> FrameDiff
Expand description

Compute a frame diff from a pane buffer.

If force_full_frame is set or >50% of rows are dirty, returns a full frame. Otherwise returns an incremental frame with scroll ops and cell deltas.