Select a range of byte indices. No-op if either index is not a char boundary.
(&mut self, start: usize, end: usize)
| 463 | /// |
| 464 | /// No-op if either index is not a char boundary. |
| 465 | pub fn select_byte_range(&mut self, start: usize, end: usize) { |
| 466 | if self.buffer.is_char_boundary(start) && self.buffer.is_char_boundary(end) { |
| 467 | self.set_selection(Selection::new(self.cursor_at(start), self.cursor_at(end))); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | /// If the current selection is not collapsed, returns the text content of |
| 472 | /// that selection. |
nothing calls this directly
no test coverage detected