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

Method move_down

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

Source from the content-addressed store, hash-verified

97 }
98
99 pub fn move_down(&mut self) {
100 if let Some(selected) = self.state.selected() {
101 let new = (selected + 1).min(self.filtered.len().saturating_sub(1));
102 self.state.select(Some(new));
103 }
104 }
105
106 pub fn select_current(&mut self) {
107 if let Some(idx) = self.state.selected() {

Callers

nothing calls this directly

Calls 1

selectedMethod · 0.80

Tested by

no test coverage detected