diff options
author | Kienyew <aobi100bt@hotmail.com> | 2020-08-16 19:39:12 +0800 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-09-20 12:14:21 +0200 |
commit | 52d6701f8fe7593c7ecd4aa060d120021f575d04 (patch) | |
tree | 6bb21f34a9fd7a2a511f0e5e8148c617e6a3b849 | |
parent | f97634011e9f2a4947c297b017acb0fb0c55cb71 (diff) |
Fix undesired behavior
-rw-r--r-- | src/bin/bat/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/bat/main.rs b/src/bin/bat/main.rs index 03fff166..2c6679d9 100644 --- a/src/bin/bat/main.rs +++ b/src/bin/bat/main.rs @@ -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, } }); |