@@ -5,7 +5,7 @@ use crate::{
5 ctrl, key, shift,
5 ctrl, key, shift,
7use helix_core::fuzzy::MATCHER;
7use helix_core::fuzzy::MATCHER;
8−use nucleo::pattern::{AtomKind, CaseMatching, Pattern};
8+use nucleo::pattern::{Atom, AtomKind, CaseMatching};
9use nucleo::{Config, Utf32Str};
9use nucleo::{Config, Utf32Str};
10use tui::{buffer::Buffer as Surface, widgets::Table};
10use tui::{buffer::Buffer as Surface, widgets::Table};
@@ -94,13 +94,13 @@ impl<T: Item> Menu<T> {
94 self.matches.clear();
94 self.matches.clear();
95 let mut matcher = MATCHER.lock();
95 let mut matcher = MATCHER.lock();
96 matcher.config = Config::DEFAULT;
96 matcher.config = Config::DEFAULT;
97− let pattern = Pattern::new(pattern, CaseMatching::Ignore, AtomKind::Fuzzy);
97+ let pattern = Atom::new(pattern, CaseMatching::Ignore, AtomKind::Fuzzy, false);
98 let mut buf = Vec::new();
98 let mut buf = Vec::new();
99 let matches = self.options.iter().enumerate().filter_map(|(i, option)| {
99 let matches = self.options.iter().enumerate().filter_map(|(i, option)| {
100 let text = option.filter_text(&self.editor_data);
100 let text = option.filter_text(&self.editor_data);
102 .score(Utf32Str::new(&text, &mut buf), &mut matcher)
102 .score(Utf32Str::new(&text, &mut buf), &mut matcher)
103− .map(|score| (i as u32, score))
103+ .map(|score| (i as u32, score as u32))
105 self.matches.extend(matches);
105 self.matches.extend(matches);
106 self.matches
106 self.matches