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

Method scroll_up

crates/opencode-tui/src/components/diff.rs:193–197  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

191 }
192
193 pub fn scroll_up(&mut self) {
194 if self.scroll_offset > 0 {
195 self.scroll_offset -= 1;
196 }
197 }
198
199 pub fn scroll_down(&mut self, max: u16) {
200 if self.scroll_offset < max {

Callers 2

scroll_active_dialogMethod · 0.45
handle_dialog_keyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected