Added Mime check for shell scripts

master
mananapr 4 years ago
parent 460c44e07b
commit bab54b78b8

@ -870,7 +870,7 @@ void openFile(char *filepath)
{
char mime[50];
getMIME(filepath, mime);
if(strcmp(mime,"text") == 0)
if((strcmp(mime,"text") == 0) || (strcmp(mime, "application/x-shellscript\n") == 0))
{
endwin();
// Block SIGWINCH

Loading…
Cancel
Save