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

Method move_up

crates/opencode-tui/src/components/dialogs/timeline.rs:52–58  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

50 }
51
52 pub fn move_up(&mut self) {
53 if let Some(i) = self.state.selected() {
54 if i > 0 {
55 self.state.select(Some(i - 1));
56 }
57 }
58 }
59
60 pub fn move_down(&mut self) {
61 if let Some(i) = self.state.selected() {

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected