You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I digged into this and it seems to be an inherent property of unicode characters. Characters like ä actually are grapheme clusters and have a length of 3 chars. We need to consider that fact when splitting str.
Since fuzzy-select is behind a feature, I suggest we also include https://crates.io/crates/unicode-segmentation for the fuzzy select feature and split the search term with that crate to support non-ascii characters.
Entering special characters that consist of more than one char (like ä, ö, ü, é, ê, ...) lead to a panic.
This seems to be due to the fact that we use a range in
search_term[0..cursor_pos]
.I will check, if using
Slice
s fixes the issue.Edit: also found this while implementing #179
The text was updated successfully, but these errors were encountered: