Skip to content

Commit 59b6ae5

Browse files
committed
fix open file not working with case_insensitive_ext
1 parent b6db70f commit 59b6ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/open_file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ fn _get_options<'a>(path: &path::Path, config: &AppConfig) -> Vec<&'a ProgramEnt
2424
.and_then(|ext| ext.to_str())
2525
.and_then(|ext| {
2626
if config.case_insensitive_ext {
27-
MIMETYPE_T.app_list_for_ext(ext)
28-
} else {
2927
MIMETYPE_T.app_list_for_ext(&ext.to_lowercase())
28+
} else {
29+
MIMETYPE_T.app_list_for_ext(ext)
3030
}
3131
})
3232
{

0 commit comments

Comments
 (0)