mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
Fix undesired behavior
This commit is contained in:
parent
f97634011e
commit
52d6701f8f
@ -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…
x
Reference in New Issue
Block a user