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

Method move_up

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

Source from the content-addressed store, hash-verified

59 }
60
61 pub fn move_up(&mut self) {
62 if let Some(selected) = self.state.selected() {
63 if selected > 0 {
64 self.state.select(Some(selected - 1));
65 }
66 }
67 }
68
69 pub fn move_down(&mut self) {
70 if let Some(selected) = self.state.selected() {

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected