on master help sign in
Fix style overwriting in table rows with multiple cells (#7281)
b0129b5Michael Davis
helix-tui/src/widgets/table.rs+3−3
@@ -450,11 +450,11 @@ impl<'a> Table<'a> {
450 } else {
450 } else {
451 col
451 col
452 };
452 };
453+ if is_selected {
454+ buf.set_style(table_row_area, self.highlight_style);
455+ }
453 let mut col = table_row_start_col;
456 let mut col = table_row_start_col;
454 for (width, cell) in columns_widths.iter().zip(table_row.cells.iter()) {
457 for (width, cell) in columns_widths.iter().zip(table_row.cells.iter()) {
455− if is_selected {
456− buf.set_style(table_row_area, self.highlight_style);
457− }
458 render_cell(
458 render_cell(
459 buf,
459 buf,
460 cell,
460 cell,