commit 1d12a2965816de52f0a03d665021949fb31cfffe
Author: FRIGN <[email protected]>
Date:   Fri Mar 6 00:32:22 2015 +0100

    Small fix in head.c
    
    Only deal with this newline-handling when many is true.

diff --git a/head.c b/head.c
index 89493fd..6c1d937 100644
--- a/head.c
+++ b/head.c
@@ -55,10 +55,11 @@ main(int argc, char *argv[])
                                ret = 1;
                                continue;
                        }
-                       if (newline)
-                               putchar('\n');
-                       if (many)
+                       if (many) {
+                               if (newline)
+                                       putchar('\n');
                                printf("==> %s <==\n", *argv);
+                       }
                        newline = 1;
                        head(fp, *argv, n);
                        fclose(fp);

Reply via email to