[hackers] [sbase] sort: apply -b only to "custom" keys || Jakob Kramer

From: <git_AT_suckless.org>
Date: Mon, 6 Apr 2015 18:16:00 +0200 (CEST)

commit bddb7200b8e410599c19dfc5ca5975d5e6f749db
Author: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Sun Apr 5 20:31:28 2015 +0200

    sort: apply -b only to "custom" keys

diff --git a/sort.c b/sort.c
index e5c3d21..c2beb72 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -283,8 +283,9 @@ main(int argc, char *argv[])
                 usage();
         } ARGEND;
 
+ /* -b shall only apply to custom key definitions */
         if (!head && global_flags)
- addkeydef("1", global_flags);
+ addkeydef("1", global_flags & ~(MOD_STARTB|MOD_ENDB));
         addkeydef("1", global_flags & MOD_R);
 
         if (!argc) {
Received on Mon Apr 06 2015 - 18:16:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 06 2015 - 18:24:21 CEST