on master help sign in
Fix style overwriting in table rows with multiple cells (#7281)
commitb0129b552dbc5fd60ae0a88c85e16042e8b3fc45 authorMichael Davis <mcarsondavis@gmail.com> dateWed 7 Jun 2023, 23:28 (3 years ago) parent27891cd
1 file changed+3−3
helix-tui/src/widgets/table.rs+3−3
helix-tui/src/widgets/table.rs+3−3
@@ -450,11 +450,11 @@ impl<'a> Table<'a> {
450450 } else {
451451 col
452452 };
453+ if is_selected {
454+ buf.set_style(table_row_area, self.highlight_style);
455+ }
453456 let mut col = table_row_start_col;
454457 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− }
458458 render_cell(
459459 buf,
460460 cell,