Fix style overwriting in table rows with multiple cells (#7281)

This commit is contained in:
Michael Davis 2023-06-07 23:28:26 -05:00 committed by GitHub
parent 27891cdc8d
commit b0129b552d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -450,11 +450,11 @@ impl<'a> Table<'a> {
} else {
col
};
let mut col = table_row_start_col;
for (width, cell) in columns_widths.iter().zip(table_row.cells.iter()) {
if is_selected {
buf.set_style(table_row_area, self.highlight_style);
}
let mut col = table_row_start_col;
for (width, cell) in columns_widths.iter().zip(table_row.cells.iter()) {
render_cell(
buf,
cell,