-
Notifications
You must be signed in to change notification settings - Fork 493
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
Motions from lightspeed.nvim don't work for certain char arguments #1539
Comments
I've noticed another issue with the |
Luckily I know some Fennel, and after some tracing I've found the minimal reproduction:
Then type I'm going to test the actual output of the Edit: It seems that before #1483 |
The fix is now merged. Would you like to test it? |
I'm sorry I didn't see your message sooner. Yes, the fix is working nicely, thank you! |
Describe the bug
This bug comes up specifically when using lightspeed.nvim. I'm reporting it here because the problem occurs in Neovide, but does not occur when running nvim in a terminal.
Lightspeed overrides some movement commands like
f
andt
. When attempting to use those custom movements to move to certain characters such as<
instead of the expected behavior I see this error message:I have seen this problem with the characters
<
and|
. The problem does not occur with>
or with alphanumeric characters.Using git bisect I found that this issue was introduced by #1483.
I tried reading the Lightspeed source to come up with a more minimal reproduction, but the Fennel code is a bit much for me to decipher right now. The function that handles 1-character search is ft.go.
To Reproduce
Steps to reproduce the behavior:
const x = 1 < 3
yt<
Expected behavior
There should be no error message. The default register should contain the text
const x = 1
.Actual behavior
This error message is reported upon typing
<
:Desktop (please complete the following information):
Please run
neovide --log
and paste the contents of the.log
file created in the current directory here:https://gist.github.com/hallettj/d5ed3158d1ee9a89a34968502b4cd4ae
The text was updated successfully, but these errors were encountered: