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

Method is_near_bottom

crates/opencode-tui/src/components/session.rs:1024–1026  ·  view source on GitHub ↗
(&self, tolerance_lines: usize)

Source from the content-addressed store, hash-verified

1022 }
1023
1024 fn is_near_bottom(&self, tolerance_lines: usize) -> bool {
1025 self.max_scroll_offset().saturating_sub(self.scroll_offset) <= tolerance_lines
1026 }
1027}
1028
1029fn push_spacing_lines(

Callers 1

render_messagesMethod · 0.80

Calls 1

max_scroll_offsetMethod · 0.80

Tested by

no test coverage detected