Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix style overwriting in table rows with multiple cells #7281

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

the-mikedavis
Copy link
Member

This is a fix for a subtle bug in the styling of cells in a table: only the last Cell in the selected Row will display fuzzy-matching highlights.

The simplest way to reproduce the bug is to open up the buffer picker. Inputting a buffer ID number or a flag which is present like * should highlight matched characters with your theme's 'ui.text.focus' scope, but the styles are not applied.

The issue is that the block moved in this commit was called per-cell but operates on the whole row's area, so the call in the last cell would overwrite all prior cells. The block must be moved outside the for-loop over the cells.

Before After
before after

This is a fix for a subtle bug in the styling of cells in a table:
only the last Cell in the selected Row will display fuzzy-matching
highlights.

The simplest way to reproduce the bug is to open up the buffer picker.
Inputting a buffer ID number or a flag which is present like * should
highlight matched characters with your theme's 'ui.text.focus' scope,
but the styles are not applied.

The issue is that the block moved in this commit was called per-cell
but operates on the whole row's area, so the call in the last cell would
overwrite all prior cells. The block must be moved outside the for-loop
over the cells.
@the-mikedavis the-mikedavis added C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Jun 7, 2023
@archseer archseer merged commit b0129b5 into master Jun 8, 2023
@archseer archseer deleted the fix-table-style-overwriting branch June 8, 2023 04:28
Triton171 pushed a commit to Triton171/helix that referenced this pull request Jun 18, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants