mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
fixing move_right on extensionless files
This commit is contained in:
@@ -258,6 +258,7 @@ void move_right(){
|
||||
char match = 0;
|
||||
char *mime = get_mimetype(mid_content[selected_file_current].file_name);
|
||||
char *extension = strrchr(mid_content[selected_file_current].file_name, '.');
|
||||
if (extension != NULL) {
|
||||
for (i = 0; i < file_extension_default_count; i++) {
|
||||
if (strstr(extension, file_extension_default_cmd[i].file_extension)) {
|
||||
char *cmd = concat(file_extension_default_cmd[i].command, " ./\"");
|
||||
@@ -274,6 +275,7 @@ void move_right(){
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (match == 0) {
|
||||
for (i = 0; i < mimetype_default_count; i++) {
|
||||
if (strstr(mime, mimetype_default_cmd[i].mimetype)) {
|
||||
|
Reference in New Issue
Block a user