ls: make color-related code more readable. Fix a case when
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Mar 2009 22:39:34 +0000 (22:39 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Mar 2009 22:39:34 +0000 (22:39 -0000)
commitc1969f69b11dca4fdd8916684daea8b2abf63017
tree7ce2f13aee53d0f69b8632de77d0672ecccdbca9
parentcbb4e61dd5431a48cf161489f02d46b77c997053
ls: make color-related code more readable. Fix a case when
 it was working non-deterministically.

function                                             old     new   delta
bold                                                   -      34     +34
showfiles                                           1508    1495     -13
fgcolor                                               50      34     -16
bgcolor                                               34       -     -34
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 34/-63)            Total: -29 bytes
coreutils/ls.c