diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs index 97762167e..3564871de 100644 --- a/helix-tui/src/widgets/table.rs +++ b/helix-tui/src/widgets/table.rs @@ -450,11 +450,11 @@ pub fn render_table( } 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,