MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / scrollTitle

Method scrollTitle

ui/fullscreen_backend.go:1055–1063  ·  view source on GitHub ↗
(title, pane, text string, height int)

Source from the content-addressed store, hash-verified

1053}
1054
1055func (b *FullscreenRendererBackend) scrollTitle(title, pane, text string, height int) string {
1056 lines := splitNonEmptyViewportLines(text)
1057 if len(lines) <= maxInt(1, height) {
1058 return title
1059 }
1060 start := minInt(maxInt(0, b.PaneScrollOffsets[pane]), len(lines))
1061 end := minInt(len(lines), start+maxInt(1, height))
1062 return fmt.Sprintf("%s %d-%d/%d", title, start+1, end, len(lines))
1063}
1064
1065func (b *FullscreenRendererBackend) renderPanel(title, body, pane string, minBodyLines int) string {
1066 width := b.panelWidth()

Callers 3

renderTasksRegionMethod · 0.95
renderModalRegionMethod · 0.95

Calls 3

maxIntFunction · 0.85
minIntFunction · 0.85

Tested by

no test coverage detected