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

Method backspace

crates/opencode-tui/src/components/question.rs:132–138  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

130 }
131
132 pub fn backspace(&mut self) {
133 if let Some(q) = &self.current_question {
134 if q.question_type == QuestionType::Text {
135 self.text_input.pop();
136 }
137 }
138 }
139
140 pub fn confirm(&mut self) -> Option<(QuestionRequest, String)> {
141 let q = self.current_question.as_ref()?;

Callers 1

handle_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected