diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs index 0f4ab2095..0a4432f8d 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) } }) {