mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-04 06:34:26 +00:00
Fix panic when typing umlauts in command palette using Vim mode
Co-Authored-By: Antonio <antonio@zed.dev>
This commit is contained in:
parent
f7a2118b15
commit
8d2a401f09
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue