Always colorize user info

In a long listing, the user was only shown when owning the file. Originally, the
user was only colorized when owning the file.

Change that to always colorize the user using the defined `:user` color.

Fixes #187.
This commit is contained in:
Claudio Bley 2018-04-17 16:06:11 +02:00
parent 3aab256ab5
commit d7e12246e3

View file

@ -181,8 +181,7 @@ module ColorLS
end
def user_info(content)
user = content.owner.ljust(@userlength, ' ')
user.colorize(@colors[:user]) if content.owned?
content.owner.ljust(@userlength, ' ').colorize(@colors[:user])
end
def group_info(group)