Skip to content

docs: amend inline docs for height calculation#637

Open
bntrtm wants to merge 1 commit intocharmbracelet:mainfrom
bntrtm:amend-height-func-docs
Open

docs: amend inline docs for height calculation#637
bntrtm wants to merge 1 commit intocharmbracelet:mainfrom
bntrtm:amend-height-func-docs

Conversation

@bntrtm
Copy link
Copy Markdown

@bntrtm bntrtm commented Mar 23, 2026

Adding clarity here can help us to avoid situations where a developer may read the documentation via IDE tooling and work on a false assumption that lipgloss.Height does not account for the fact that at least one line in the input string won't have a newline, when in fact it does (hence the +1).

I contend that we have already seen an example of this likely occurring within the filepicker model in the bubbles repo.

@bntrtm bntrtm force-pushed the amend-height-func-docs branch from 300f5a2 to 259d9cf Compare April 26, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant