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

Method preGrowTextarea

internal/tui/render.go:153–158  ·  view source on GitHub ↗

preGrowTextarea inflates Height to the cap *before* a KeyMsg is processed. bubbles/textarea's repositionView() scrolls the viewport down when the cursor drops below Height (e.g. a typed char wraps); since recomputeLayout runs only AFTER handleKey, without this the viewport stays anchored at the scro

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

updateMethod · 0.95

Calls 3

maxTextareaHeightMethod · 0.95
HeightMethod · 0.80
SetHeightMethod · 0.80

Tested by

no test coverage detected