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

Method scroll_down

crates/opencode-tui/src/components/sidebar.rs:125–130  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

123 }
124
125 fn scroll_down(&mut self) {
126 let max_scroll = self.max_scroll();
127 if self.scroll_offset < max_scroll {
128 self.scroll_offset += 1;
129 }
130 }
131
132 fn max_scroll(&self) -> usize {
133 self.content_lines.saturating_sub(self.viewport_lines)

Callers 1

scroll_down_atMethod · 0.45

Calls 1

max_scrollMethod · 0.80

Tested by

no test coverage detected