Closed leahneukirchen closed 3 years ago
Wow, it seems that this input triggers some degenerate case on fuzzy_match
(src/picker.rs
).
Will work on that later!
I have config completion_min_len 255
if that matters.
Wait, are you saying that you got that crash even when using config completion_min_len 255
?
Or rather that you're using it that config as a workaround?
Oh, I just noticed that it only happens on wsl!
I noticed it with (I added it to disable the completion).
I use native Linux.
Got the crash fixed! It was because we were incorrectly deserializing client events when the stdin_buf was not big enough to hold all the incomming events.
The fuzzy_match
being extremelly slow is still there as it will require implementing a better algorithm.
I'll create a new issue for it and close this one!
Use an empty buffer, insert mode, paste this string of 100 x:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
.Pepper crashes:
Reproducible on pepper 1e231e3535e08b2d81.