Skip to main content

record_change

Function record_change 

Source
pub fn record_change<T: Clone>(
    history: &History<T>,
    previous: T,
    path: Option<&str>,
) -> History<T>
Expand description

Appends the record before a change to the entries unless path equals the path of the last value edit, keeps the last HISTORY_LIMIT entries, clears the redo entries and sets the path of the history to path (CURT-077, CURT-063).