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

Function wrapRows

internal/tui/render.go:190–234  ·  view source on GitHub ↗

wrapRows mirrors bubbles/textarea.wrap()'s row count so the prompt's auto-grow stays in lock step with what the textarea renders: word-boundary aware with a hard-wrap fallback for over-wide words, plus the trailing cursor-anchor row when content exactly fills the width. Adapted from charmbracelet/bu

(s string, width int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

visualPromptLinesMethod · 0.85

Calls

no outgoing calls

Tested by 1