Patch from Mike to fix handling of +x.yn.
authorJim Meyering <jim@meyering.net>
Fri, 5 May 1995 04:37:21 +0000 (04:37 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 5 May 1995 04:37:21 +0000 (04:37 +0000)
src/sort.c

index e359bbb..9379440 100644 (file)
@@ -1445,6 +1445,10 @@ set_ordering (s, key, blanktype)
          break;
        case 'n':
          key->numeric = 1;
+         if (blanktype == bl_start || blanktype == bl_both)
+           key->skipsblanks = 1;
+         if (blanktype == bl_end || blanktype == bl_both)
+           key->skipeblanks = 1;
          break;
        case 'r':
          key->reverse = 1;