mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
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:
parent
3aab256ab5
commit
d7e12246e3
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue