[PATCH 7/8] sort: simplify skip_columns

From: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Sat, 3 May 2014 20:39:45 +0200

---
 sort.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/sort.c b/sort.c
index 5af81d2..9ab58d8 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -206,16 +206,10 @@ skip_columns(char *s, size_t n)
 	size_t i;
 
 	for(i = 0; i < n; i++) {
-		if(bflag) {
-			if(i != 0)
-				s = next_blank(s);
+		if(i > 0)
+			s = end_column(s);
+		if(bflag)
 			s = next_nonblank(s);
-		} else {
-			if(i == 0)
-				continue;
-			s = next_nonblank(s);
-			s = next_blank(s);
-		}
 	}
 
 	return s;
-- 
1.8.5.1
--/04w6evG8XlLl3ft
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0008-sort-document-b.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sat May 03 2014 - 21:48:03 CEST