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

Method move_down

crates/opencode-tui/src/components/dialogs/fork.rs:67–73  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn move_down(&mut self) {
68 if let Some(i) = self.state.selected() {
69 if i < self.entries.len().saturating_sub(1) {
70 self.state.select(Some(i + 1));
71 }
72 }
73 }
74
75 pub fn selected_entry(&self) -> Option<&ForkEntry> {
76 self.state.selected().and_then(|i| self.entries.get(i))

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected