Fix undesired behavior

This commit is contained in:
Kienyew 2020-08-16 19:39:12 +08:00 committed by David Peter
parent f97634011e
commit 52d6701f8f
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}
});