file_finder: Fix open path prompt creating wrong highlight indices (#40488)
Fixes ZED-28R Release Notes: - Fixed open path prompt panicking on certain inputs
This commit is contained in:
@@ -228,7 +228,7 @@ impl PickerDelegate for PickerPromptDelegate {
|
||||
let highlights: Vec<_> = hit
|
||||
.positions
|
||||
.iter()
|
||||
.filter(|index| index < &&self.max_match_length)
|
||||
.filter(|&&index| index < self.max_match_length)
|
||||
.copied()
|
||||
.collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user