MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / move_down

Method move_down

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

Source from the content-addressed store, hash-verified

81 }
82
83 pub fn move_down(&mut self) {
84 if let Some(q) = &self.current_question {
85 if !q.options.is_empty() && self.selected_index + 1 < q.options.len() {
86 self.selected_index += 1;
87 }
88 }
89 }
90
91 pub fn toggle_selected(&mut self) {
92 if let Some(q) = &self.current_question {

Callers 3

handle_eventMethod · 0.45
scroll_active_dialogMethod · 0.45
handle_dialog_keyMethod · 0.45

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected