aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 815d5d9..a48536e 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3090,11 +3090,15 @@ static bool show_stats(const char *fpath, const struct stat *sb)
++p;
}
- fprintf(fp, " %s", begin);
+ fprintf(fp, " %s\n ", begin);
+
+ /* Show the file mime type */
+ p = get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, fpath, FALSE);
+ fprintf(fp, "%s", g_buf);
}
}
- fprintf(fp, "\n\n");
+ fprintf(fp, "\n");
fclose(fp);
close(fd);