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

Method move_up

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected