mirror of
https://github.com/Jguer/yay
synced 2024-10-15 12:32:18 +00:00
Merge pull request #169 from mvdan/no-color
upgrade: be consistent about no colors
This commit is contained in:
commit
2369f6a509
|
@ -65,6 +65,9 @@ func (u upSlice) Print(start int) {
|
|||
var left, right string
|
||||
|
||||
f := func(name string) (output string) {
|
||||
if alpmConf.Options&alpm.ConfColor == 0 {
|
||||
return name
|
||||
}
|
||||
var hash = 5381
|
||||
for i := 0; i < len(name); i++ {
|
||||
hash = int(name[i]) + ((hash << 5) + (hash))
|
||||
|
|
Loading…
Reference in a new issue