(&mut self, text: &str)
| 581 | } |
| 582 | |
| 583 | pub fn insert_text(&mut self, text: &str) { |
| 584 | self.input.insert_str(self.cursor_position, text); |
| 585 | self.cursor_position = self.cursor_position.saturating_add(text.len()); |
| 586 | self.reset_history_cursor(); |
| 587 | self.recompute_suggestions(); |
| 588 | } |
| 589 | |
| 590 | pub fn desired_height(&self, width: u16) -> u16 { |
| 591 | self.input_display_lines(width) |
no test coverage detected