-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(table): v2 uses invalid row index to style cell #459
Comments
Thanks so much for this - I'm looking into it. One of those funny moments of "it works, but why? 🤔" Will post updates here |
Update: this is fixed on the https://github.com/charmbracelet/lipgloss/compare/table-auto-wrap |
This should be fixed by #479 |
@andreynering Thank you for your work on #479. I'll try it myself, not only for this bug report, with my current project that uses the Lipgloss table package. |
@andreynering Just realised on my side that the branch is based on the v1 module, and I'm currently working off the v2 module. I'll wait until a backport of the changes in the next v2 alpha/beta release and provide an update if need be. |
Hello,
Per my understanding, the v2 package of Lipgloss
table
package has introduced theHeaderRow
constant to denote the row header.However, I noticed that in one situation, it still uses the
btoi(hasHeaders)
function to compute the row index:lipgloss/table/table.go
Line 310 in ec86e88
Since I cannot find any other usage of this regarding rows, I think this is a regression in v2 introduced with the refactor and introduction of the new constant.
@bashbunni I think you worked on this, so maybe you could correct me if I'm wrong.
Thanks
The text was updated successfully, but these errors were encountered: