mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Fix panic when typing umlauts in command palette using Vim mode (#6761)
Release Notes: - This fixes a panic that occurs when someone was using Vim mode and typing umlauts into the command palette. E.g: `:%s/impërt`
This commit is contained in:
commit
802405f6bc
@ -282,7 +282,7 @@ fn generate_positions(string: &str, query: &str) -> Vec<usize> {
|
||||
return positions;
|
||||
};
|
||||
|
||||
for (i, c) in string.chars().enumerate() {
|
||||
for (i, c) in string.char_indices() {
|
||||
if c == current {
|
||||
positions.push(i);
|
||||
if let Some(c) = chars.next() {
|
||||
|
Loading…
Reference in New Issue
Block a user