MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_input

Method set_input

crates/opencode-tui/src/components/prompt.rs:548–555  ·  view source on GitHub ↗
(&mut self, input: String)

Source from the content-addressed store, hash-verified

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

Calls 2

recompute_suggestionsMethod · 0.80