diff options
Diffstat (limited to 'src/bin/bat/app.rs')
-rw-r--r-- | src/bin/bat/app.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/bat/app.rs b/src/bin/bat/app.rs index c382975e..6fc85321 100644 --- a/src/bin/bat/app.rs +++ b/src/bin/bat/app.rs @@ -122,6 +122,10 @@ impl App { }; let mut syntax_mapping = SyntaxMapping::new(); + // start building glob matchers for builtin mappings immediately + // this is an appropriate approach because it's statistically likely that + // all the custom mappings need to be checked + syntax_mapping.start_offload_build_all(); if let Some(values) = self.matches.get_many::<String>("ignored-suffix") { for suffix in values { |