From a9ff1fa70551d17decd9ff714cd15799fe216a3d Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Fri, 3 Jan 1997 06:44:53 +0000 Subject: 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. --- misc/colorls/files/patch-aa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/colorls') 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; + } -- cgit v1.2.3