(&mut self, input: String)
| 546 | } |
| 547 | |
| 548 | pub fn set_input(&mut self, input: String) { |
| 549 | self.input = input; |
| 550 | self.cursor_position = self.input.len(); |
| 551 | self.history_index = None; |
| 552 | self.history_draft = None; |
| 553 | self.reset_interrupt_confirmation(); |
| 554 | self.recompute_suggestions(); |
| 555 | } |
| 556 | |
| 557 | pub fn mode(&self) -> PromptMode { |
| 558 | self.mode |