-
Notifications
You must be signed in to change notification settings - Fork 324
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
Freeze when spamming a digit key #66
Comments
I don't think it really freezes, that looks more like a performance problem. I.e. when I hit |
Unfortunately simply entering a big count without issuing any commands is sufficient to completely freeze the client. |
But how do you verify that it's frozen without actually doing anything :-)? After you hit the numbers, then as soon as you hit anything else, it will try to apply them numbers to your hotkey. I don't think there's any timeout feature, like in vim. |
I'm using |
It doesn't, but... it does. I mean that count doesn't do anything in conjunction with I managed (with |
@KenjiTakahashi is right. It just takes an awful amount of time. You can try this with a remote command. @lenormf Everything is a command in lf including |
So |
I guess we can try to add some check to see if the count is meaningful to the command or limit the count in case of a movement command but then again why do you accidentally hit something like |
I was trying to bind to In any case, unless there's a use to counts to |
We can try to pass the count to the evaluator and handle the count on a case by case basis which requires some refactoring. Alternatively, we can try to set a hard limit to counts (e.g. 10000) which should prevent accidental locks as in your case. We need to think about the consequences though. Feel free to open an issue for alt key mappings. |
That sounds good. Issue #67 was created consequently. |
I have now refactored the code to apply command counts on a case by case basis. Previously it was repeating for all commands including set commands which was kind of silly. Now it is only applied for Also it should be much more efficient. Previously a key push such as I have also added a key accumulator field to the ruler on the right side of the bottom statline. It also shows you command counts so accidental pushes are more obvious. I'm closing this issue now. |
Hi,
lf
completely freezes when I hit any numbered key (to use a command count for example) a few times (around 5 or more).HTH.
The text was updated successfully, but these errors were encountered: