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 not stored for this graph (policy: none)
no outgoing calls