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: fixed icon highlights #2522

Merged
merged 1 commit into from
May 23, 2023
Merged

Conversation

folke
Copy link
Contributor

@folke folke commented May 23, 2023

Description

There were two locations where icons were highlighted at index 1.
Highlight indices start at 0, so that was wrong.

What happened instead is that the highlight started inside a multi-byte character. That behavior is undefined.

That used to work accidentally, but with the virtual text PR, icons are broken on nightly.

neovim/neovim#20130

This PR fixes the highlight offsets.

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

@folke folke changed the title fix: highlights start at index 0 (was broken on nightly) fix: fixed icon highlights May 23, 2023
@Conni2461
Copy link
Member

Thanks :)

@Conni2461 Conni2461 merged commit 057ee0f into nvim-telescope:master May 23, 2023
@folke
Copy link
Contributor Author

folke commented May 23, 2023

Thank you for the quick merge! :)

Conni2461 pushed a commit that referenced this pull request May 24, 2023
abelmul pushed a commit to abelmul/telescope.nvim that referenced this pull request Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants