Get the total number of bytes that were inserted.
(&self)
| 472 | |
| 473 | /// Get the total number of bytes that were inserted. |
| 474 | pub fn inserted_bytes(&self) -> usize { |
| 475 | self.new_hunks |
| 476 | .iter() |
| 477 | .filter(|s| s.is_change()) |
| 478 | .map(|s| s.len()) |
| 479 | .sum() |
| 480 | } |
| 481 | |
| 482 | /// Render the old line with ANSI highlighting for terminal output. |
| 483 | /// |