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

Bug: Neovim blocked when searching for common query #50

Open
calebdw opened this issue Mar 4, 2023 · 3 comments
Open

Bug: Neovim blocked when searching for common query #50

calebdw opened this issue Mar 4, 2023 · 3 comments

Comments

@calebdw
Copy link

calebdw commented Mar 4, 2023

Hello!

I think there needs to be some control over the blocking search time. I accidentally typed $ instead of \$ (to search for a PHP variable), and Neovim froze for several minutes.

@mkdir700
Copy link

Yes, I have also encountered the same issue.

@mkdir700
Copy link

I have noticed a pattern where the program gets blocked while entering the second character. The CPU usage remains at 100% until the search is complete.

@weeman1337
Copy link
Collaborator

$ is a token for end of line in a pattern. There other dangerous tokens: ^ (start of line) and . (any char).

I think there should be a blocklist for prompts, that should not start a search. This can also be configurable.

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

3 participants