diff --git a/src/nnn.c b/src/nnn.c index fe8b6a9f..b6a4adb0 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4178,10 +4178,9 @@ static bool show_stats(char *fpath) return FALSE; } - while (r) { + while (r) get_output(cmds[--r], fpath, NULL, fp, TRUE, FALSE); - fprintf(fp, "\n"); - } + fclose(fp); close(fd);