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

Method scroll_down

crates/opencode-tui/src/components/diff.rs:199–203  ·  view source on GitHub ↗
(&mut self, max: u16)

Source from the content-addressed store, hash-verified

197 }
198
199 pub fn scroll_down(&mut self, max: u16) {
200 if self.scroll_offset < max {
201 self.scroll_offset += 1;
202 }
203 }
204
205 pub fn render(&self, frame: &mut Frame, area: Rect, theme: &Theme) {
206 if self.lines.is_empty() {

Callers 2

scroll_active_dialogMethod · 0.45
handle_dialog_keyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected