Fix handling of uppercase characters in fuzzy finding

This commit is contained in:
Max Brunsfeld
2021-04-26 15:04:26 -07:00
parent 870925e2ac
commit e7c594262f
4 changed files with 52 additions and 24 deletions
+3 -3
View File
@@ -141,9 +141,9 @@ impl FileFinder {
self.worktree(tree_id, app).map(|tree| {
let prefix = if self.include_root_name {
tree.root_name_chars()
tree.root_name()
} else {
&[]
""
};
let path = path_match.path.clone();
let path_string = path_match.path.to_string_lossy();
@@ -169,7 +169,7 @@ impl FileFinder {
let highlight_color = ColorU::from_u32(0x304ee2ff);
let bold = *Properties::new().weight(Weight::BOLD);
let mut full_path = prefix.iter().collect::<String>();
let mut full_path = prefix.to_string();
full_path.push_str(&path_string);
let mut container = Container::new(