You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.heights in this case is 1 so we end up with a total height of 0. It works with a header because the header height is accounted for twice: once in t.heights and once again with btoi(hasHeaders).
The -1 is the culprit here I guess
The text was updated successfully, but these errors were encountered:
maybe this will help to debug: happens on narrower terminal when table doesent fit from the first run and recalculate logic is triggered.
On a first pass my StyleFunc is getting row/column iteration with rows starting at 1-to-len. With second pass (resize) it goes col/row, but rows are in the range of 0-to-(len-1), which is causing issues for me, but I think its the same bug.
Describe the bug
A table which as no border and no header will truncate its last line. In this case the table height is miscalculated.
Additional context
For instance a table with no header and a single line shows nothing.
t.heights
in this case is 1 so we end up with a total height of0
. It works with a header because the header height is accounted for twice: once int.heights
and once again withbtoi(hasHeaders)
.The
-1
is the culprit here I guessThe text was updated successfully, but these errors were encountered: