Skip to content

Conversation

lastquestion
Copy link
Owner

@lastquestion lastquestion commented Jun 15, 2020

The number of columns used to be calculated from the number of display-column-widths. On first render, this is nil, because needs-resize is t, and nothing has yet been calculated. This however still worked so long the buffer rendered once before adding new entires. If entries existed on first render, the column count would be 0.

Fix by calculating column count off of header-widths, which is always set correctly.

Fixes #40

The number of columns used to be calculated from the number of
display-column-widths. On first render, this is nil, because
needs-resize is t, and nothing has yet been calculated. This however
still worked so long the buffer rendered once before adding new
entires. If entries existed on first render, the column count would be
0.

Fix by calculating column count off of header-widths, which is always
set correctly.
@lastquestion lastquestion merged commit 258f5ac into master Jun 15, 2020
@lastquestion lastquestion deleted the fix-display-column-oob branch June 15, 2020 03:47
@lastquestion lastquestion linked an issue Jun 15, 2020 that may be closed by this pull request
2 tasks
@lastquestion lastquestion removed a link to an issue Jun 15, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant