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
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ fn generate_positions(string: &str, query: &str) -> Vec<usize> {
|
||||||
return positions;
|
return positions;
|
||||||
};
|
};
|
||||||
|
|
||||||
for (i, c) in string.chars().enumerate() {
|
for (i, c) in string.char_indices() {
|
||||||
if c == current {
|
if c == current {
|
||||||
positions.push(i);
|
positions.push(i);
|
||||||
if let Some(c) = chars.next() {
|
if let Some(c) = chars.next() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue