mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #736] Table.RemoveColumn() does not update lastColumn #538
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cespedes on GitHub (Jun 24, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/736
When removing a column in a table by calling RemoveColumn(), even if the removal is successful, the table continues to have the same number of columns.
A simple fix is to include these lines at the end of
func (t *tableDefaultContent) RemoveColumn(table.go line 332):I can prepare a pull request if you prefer.
@rivo commented on GitHub (Nov 13, 2022):
Thank you! It's fixed now.