mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-18 16:50:33 +01: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);
|
let test_file = Path::new("test").with_extension(extension);
|
||||||
match config.syntax_mapping.get_syntax_for(test_file) {
|
match config.syntax_mapping.get_syntax_for(test_file) {
|
||||||
Some(MappingTarget::MapTo(primary_lang)) => lang_name == primary_lang,
|
Some(MappingTarget::MapTo(primary_lang)) => lang_name == primary_lang,
|
||||||
Some(MappingTarget::MapToUnknown) => true,
|
Some(MappingTarget::MapToUnknown) => false,
|
||||||
None => true,
|
None => true,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user