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

Method move_up

crates/opencode-tui/src/components/slash_command.rs:92–97  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

90 }
91
92 pub fn move_up(&mut self) {
93 if let Some(selected) = self.state.selected() {
94 let new = selected.saturating_sub(1);
95 self.state.select(Some(new));
96 }
97 }
98
99 pub fn move_down(&mut self) {
100 if let Some(selected) = self.state.selected() {

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected