diff options
author | Michael Davis | 2023-06-08 04:28:26 +0000 |
---|---|---|
committer | GitHub | 2023-06-08 04:28:26 +0000 |
commit | b0129b552dbc5fd60ae0a88c85e16042e8b3fc45 (patch) | |
tree | 4f14e69c38f3c5be03d1592c1374f3565376dcbf /helix-tui/src/widgets | |
parent | 27891cdc8d48a61b4a25b95a8ac45256ff69fcbe (diff) |
Fix style overwriting in table rows with multiple cells (#7281)
Diffstat (limited to 'helix-tui/src/widgets')
-rw-r--r-- | helix-tui/src/widgets/table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs index 97762167..3564871d 100644 --- a/helix-tui/src/widgets/table.rs +++ b/helix-tui/src/widgets/table.rs @@ -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, |