Skip to content

Commit

Permalink
Fix style overwriting in table rows with multiple cells (helix-editor…
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and Triton171 committed Jun 18, 2023
1 parent b1f4b88 commit d1905c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-tui/src/widgets/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,11 @@ impl<'a> Table<'a> {
} else {
col
};
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()) {
if is_selected {
buf.set_style(table_row_area, self.highlight_style);
}
render_cell(
buf,
cell,
Expand Down

0 comments on commit d1905c0

Please sign in to comment.