mirror of
https://github.com/sharkdp/bat
synced 2025-03-07 16:47:22 +00:00
Fix undesired behavior
This commit is contained in:
parent
2bad4df14e
commit
91e9d2aadb
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ pub fn list_languages(config: &Config) -> Result<()> {
|
|||
let test_file = Path::new("test").with_extension(extension);
|
||||
match config.syntax_mapping.get_syntax_for(test_file) {
|
||||
Some(MappingTarget::MapTo(primary_lang)) => lang_name == primary_lang,
|
||||
Some(MappingTarget::MapToUnknown) => true,
|
||||
Some(MappingTarget::MapToUnknown) => false,
|
||||
None => true,
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue