Skip to content

Commit

Permalink
fix open file not working with case_insensitive_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Mar 11, 2024
1 parent b6db70f commit 59b6ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/open_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
{
Expand Down

0 comments on commit 59b6ae5

Please sign in to comment.