-
Notifications
You must be signed in to change notification settings - Fork 82
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
Remove problematic character from __fzf_search_current_dir #142
Conversation
Hi, thanks for the PR! Wow so interesting! What is the error exactly and when does it trigger? When you run search directory? Or when you open up the file? cc: @kidonng how do you think it got added? |
😅 Mea culpa, this is accidentally introduced in The problem here is there are actually two of them, and I only removed the latter one that broke the tests. I guess new versions of Fish can handle this so tests doesn't fail because of the former one (and it doesn't seem to cause error on my machine too, which is on Fish 3.2.1). |
Is that screenshot from the web interface? I've never seen those 2 dots before. I'm guessing they are used by the GitHub JS to start and end highlighting. |
Not, it's that problematic line pasted in Chrome Devtools, which shows invisible characters. This is just for demonstration purpose. |
Thanks that makes sense! I would still love to learn what errors it was causing tho...was it fish throwing up? I looked at the CI job that broke and the main thing that broke was formatting. |
Maybe use a older version of Fish or ask the devs, as I don't encounter any issue. |
Here's the error: (Fish version 3.1.2)
(I'm pretty sure that it broke comment detection, but i'm not positive) Edit: also, the rest of the spaces in that line are NBSPs, not standard ascii spaces. It probably won't break anything, but I'd recommend to be more careful with your copypasta in the future Output of
(\u{a0} being unicode character U+00A0, the Non-breaking space) |
Thanks! Gonna release a hotfix for this. |
There was an zero-width space hiding before a comment throwing an error. (the character's invisible in a browser or terminal, but running
git diff (this commit's hash) 2c0fb5 | vim -
should make it visible)