summaryrefslogtreecommitdiff
path: root/misc/colorls
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-01-03 06:44:53 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-01-03 06:44:53 +0000
commita9ff1fa70551d17decd9ff714cd15799fe216a3d (patch)
tree971fa0ee756a82913d2eb8a5eec0d546c8961a8d /misc/colorls
parent+ regexps (diff)
Ay. I obviously wasn't looking close enough the first time around. Now
the output should be identical for "ls -C" and "ls -CG" except for the color sequences.
Notes
Notes: svn path=/head/; revision=5180
Diffstat (limited to 'misc/colorls')
-rw-r--r--misc/colorls/files/patch-aa2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/colorls/files/patch-aa b/misc/colorls/files/patch-aa
index f079ac2ba0f6..75053363cfdb 100644
--- a/misc/colorls/files/patch-aa
+++ b/misc/colorls/files/patch-aa
@@ -123,7 +123,7 @@
+ * with color sequences
+ */
+ if (f_color)
-+ for (cnt = chcnt ; cnt <= endcol ; cnt++) {
++ while ((cnt = (chcnt + 1)) <= endcol) {
+ (void)putchar(' ');
+ chcnt = cnt;
+ }