(&mut self)
| 93 | } |
| 94 | |
| 95 | pub fn handle_delete(&mut self) { |
| 96 | let char_count = self.input.chars().count(); |
| 97 | if self.cursor < char_count { |
| 98 | let byte_pos = self.char_pos_to_byte_pos(self.cursor); |
| 99 | if byte_pos < self.input.len() { |
| 100 | self.input.remove(byte_pos); |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | pub fn move_cursor_left(&mut self) { |
| 106 | if self.cursor > 0 { |
no test coverage detected