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

Different highlighting with NUL character in text #547

Open
tobx opened this issue Oct 14, 2023 · 0 comments
Open

Different highlighting with NUL character in text #547

tobx opened this issue Oct 14, 2023 · 0 comments

Comments

@tobx
Copy link

tobx commented Oct 14, 2023

Hello,

I came across some weird behavior. When there is a NUL character in the string and the string includes a phrase multiple times, then searching for that phrase will highlight the last appearance of that phrase as match, instead of the first one.

This highlights the last appearance of Test in the interactive finder.

echo "\0Test Test Test" | sk -q Test

This highlights the first appearance of Test in the interactive finder.

echo "Test Test Test" | sk -q Test

That seems like a bug to me, but I am not sure.

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

No branches or pull requests

1 participant