mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-14 06:38:24 +00:00
glob is called twice
This commit is contained in:
parent
4790def1ef
commit
3abaec4de9
@ -87,7 +87,7 @@ where
|
||||
for mapping in mappings {
|
||||
if let (matcher, MappingTarget::MapTo(s)) = mapping {
|
||||
let globs = map.entry(*s).or_insert_with(Vec::new);
|
||||
globs.push(matcher.glob().glob().into());
|
||||
globs.push(matcher.glob().to_string());
|
||||
}
|
||||
}
|
||||
map
|
||||
|
Loading…
x
Reference in New Issue
Block a user