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(highlight): check if src_line exists before trying to highlight it #6

Merged
merged 1 commit into from
Aug 8, 2024
Merged

fix(highlight): check if src_line exists before trying to highlight it #6

merged 1 commit into from
Aug 8, 2024

Conversation

TheLeoP
Copy link
Contributor

@TheLeoP TheLeoP commented Aug 8, 2024

If a quickfix entry has no text, the highlighting will fail. Instead, I added a nil check to avoid to run the highlighting function early if there is no text to highlight

I encountered this after sending the result of :FzfLua files to the quickfixlist

@github-actions github-actions bot requested a review from stevearc August 8, 2024 04:37
@stevearc
Copy link
Owner

stevearc commented Aug 8, 2024

Thanks for the PR!

@stevearc stevearc merged commit b6a3d2f into stevearc:master Aug 8, 2024
7 checks passed
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