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.
()
| 111 | const 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. |
| 116 | func (m Model) queuedHeight() int { |
| 117 | if m.queued == nil { |
| 118 | return 0 |
| 119 | } |
| 120 | return strings.Count(m.renderQueued(), "\n") + 1 |
| 121 | } |
no test coverage detected