pub fn changed_range(before: &str, after: &str) -> (usize, usize)Expand description
Returns the span of after that differs from before.
The common prefix and suffix are stripped, so what remains is the text a history step brought in: select it to show what an undo restored. An empty span means the step only removed text and marks where it went.