Skip to main content

undo

Function undo 

Source
pub fn undo(text: &str, hunks: &[&Hunk]) -> Option<String>
Expand description

text with the hunks undone: the old lines where the new ones are. The hunks are of this text and do not overlap. None when one of them does not fit the text.