(&mut self)
| 77 | } |
| 78 | |
| 79 | pub fn handle_newline(&mut self) { |
| 80 | let byte_pos = self.char_pos_to_byte_pos(self.cursor); |
| 81 | self.input.insert(byte_pos, '\n'); |
| 82 | self.cursor += 1; |
| 83 | } |
| 84 | |
| 85 | pub fn handle_backspace(&mut self) { |
| 86 | if self.cursor > 0 && !self.input.is_empty() { |
no test coverage detected