MCPcopy Create free account
hub / github.com/codehamr/codehamr / queuedHeight

Method queuedHeight

internal/tui/render.go:113–118  ·  view source on GitHub ↗

queuedHeight is the rows renderQueued occupies in View(), 0 when nothing is queued. Subtracted from the textarea cap so a tall queued box can't crowd out the status bar, mirroring popoverHeight.

()

Source from the content-addressed store, hash-verified

111const queuedBodyCap = 4
112
113// queuedHeight is the rows renderQueued occupies in View(), 0 when nothing is
114// queued. Subtracted from the textarea cap so a tall queued box can't crowd out
115// the status bar, mirroring popoverHeight.
116func (m Model) queuedHeight() int {
117 if m.queued == nil {
118 return 0
119 }
120 return strings.Count(m.renderQueued(), "\n") + 1
121}

Callers 1

maxTextareaHeightMethod · 0.95

Calls 1

renderQueuedMethod · 0.95

Tested by

no test coverage detected