(&self, char_idx: usize)
| 76 | } |
| 77 | |
| 78 | pub fn char_to_line(&self, char_idx: usize) -> usize { |
| 79 | self.rope.char_to_line(char_idx.min(self.len_chars())) |
| 80 | } |
| 81 | |
| 82 | pub fn char_to_position(&self, char_idx: usize) -> (usize, usize) { |
| 83 | let char_idx = char_idx.min(self.len_chars()); |
no test coverage detected