-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Short-circuit the word and treesitter object movement commands #5851
Conversation
LGTM, small and simple fix for a pathological case 👍 We might want to do something similar for other movements like |
234bc71
to
9f15fa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, nice catch. It's always good to fixup things that can accidently lockup the UI thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor style nit, otherwise I think this looks good
The loop always iterates the number of times the user specified even if the beginning/end of the document is reached. For an extreme demonstration try the following commands, Helix will hang for several seconds. 100000000w 100000000]c Review feedback amended: - short-circuit the prev/next paragraph commands
9f15fa5
to
b6aa475
Compare
The loop always iterates the number of times the user specified even if the beginning/end of the document is reached.
For an extreme demonstration try the following commands, Helix will hang for several seconds.
100000000w
100000000]c