(&mut self, window: &mut Window, _cx: &mut Context<Self>)
| 213 | .find('\n') |
| 214 | .map(|offset| line_start + offset + 1) |
| 215 | .unwrap_or(content.len()); |
| 216 | let mut line_end = line_end_with_newline; |
| 217 | if line_end > line_start && content.as_bytes()[line_end - 1] == b'\n' { |
| 218 | line_end -= 1; |
| 219 | } |
| 220 | if line_end > line_start && content.as_bytes()[line_end - 1] == b'\r' { |
| 221 | line_end -= 1; |
| 222 | } |
| 223 | |
| 224 | if line_end == line_start { |
| 225 | rows.push(VirtualTextRow { |
no test coverage detected