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

Method move_down

crates/opencode-tui/src/components/dialogs/mcp.rs:69–75  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

67 }
68
69 pub fn move_down(&mut self) {
70 if let Some(selected) = self.state.selected() {
71 if selected < self.items.len().saturating_sub(1) {
72 self.state.select(Some(selected + 1));
73 }
74 }
75 }
76
77 pub fn selected_item(&self) -> Option<McpItem> {
78 self.state

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected