MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / maxOffset

Method maxOffset

internal/tui/diff.go:157–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (d *DiffViewer) maxOffset() int {
158 if len(d.lines) <= d.height {
159 return 0
160 }
161 return len(d.lines) - d.height
162}
163
164// Render renders the diff view.
165func (d *DiffViewer) Render() string {

Callers 4

ScrollDownMethod · 0.95
PageDownMethod · 0.95
ScrollToBottomMethod · 0.95
renderDiffHeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected