Whole file
Textualize/rich
The author described this change as “fix(table): highlight columns added by add_row”. It counts as a record because the check below fails on the code as it stood at 5ba9cb56e and passes on 16b383040, with nothing else changed between the two runs.
ProjectTextualize/rich
Fix saved2024-10-03
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
fix(table): highlight columns added by add_row
The change
| 451 | 451 | ] | |
| 452 | 452 | for index, renderable in enumerate(cell_renderables): | |
| 453 | 453 | if index == len(columns): | |
| 454 | - | column = Column(_index=index) | |
| 454 | + | column = Column(_index=index, highlight=self.highlight) | |
| 455 | 455 | for _ in self.rows: | |
| 456 | 456 | add_cell(column, Text("")) | |
| 457 | 457 | self.columns.append(column) |
The check that tells the two apart
fail→pass·tests/test_table.py::test_columns_highlight_added_by_add_row
Check file tests/test_table.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it5ba9cb56e68dcdf2db50c214d8f1412c8a50761b
Broken version dated2024-10-01
Modulerich.table
Units changedTable
Fingerprint83142c0b0ea26cd8
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in Textualize/rich
- 2026-04-12TableDataElement
- 2026-02-01_cell_len
- 2026-01-24get_character_cell_size
- 2025-11-13Fix raw markup printed on prompt errors sometimes
- 2025-05-01fix(panel): fix title missing panel background
- 2023-01-06fix issue splitting segments