commit 109e8963f5f82641579f72e4367d427db54dae09
Author: Jakob Kramer <[email protected]>
Date:   Tue May 6 13:37:05 2014 +0200

    sort: ignore trailing newline while sorting

diff --git a/sort.c b/sort.c
index 1d5f325..26d287d 100644
--- a/sort.c
+++ b/sort.c
@@ -245,7 +245,8 @@ columns(char *line, const struct keydef *kd)
                else
                        end = end_column(end);
        } else {
-               end = line + strlen(line);
+               if((end = strchr(line, '
')) == NULL)
+                       end = strchr(line, '

Reply via email to