summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2024-03-10 23:19:26 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2024-03-10 23:19:26 -0400
commit59b6ae520d4c3c6df357bdf4d03c2864efc69c09 (patch)
tree91489411255b5271c24ce55fa9b77119945a775d
parentb6db70f088a0bd42ad7e37c4b7a8db27dd154843 (diff)
fix open file not working with case_insensitive_ext
-rw-r--r--src/commands/open_file.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs
index 0f4ab20..0a4432f 100644
--- a/src/commands/open_file.rs
+++ b/src/commands/open_file.rs
@@ -24,9 +24,9 @@ fn _get_options<'a>(path: &path::Path, config: &AppConfig) -> Vec<&'a ProgramEnt
.and_then(|ext| ext.to_str())
.and_then(|ext| {
if config.case_insensitive_ext {
- MIMETYPE_T.app_list_for_ext(ext)
- } else {
MIMETYPE_T.app_list_for_ext(&ext.to_lowercase())
+ } else {
+ MIMETYPE_T.app_list_for_ext(ext)
}
})
{