Fix padding on time update

This commit is contained in:
morganamilo 2018-08-04 14:22:49 +01:00
parent 6c5c6ab8f6
commit de59b3911d
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

View File

@ -64,7 +64,7 @@ func (u upSlice) Less(i, j int) bool {
func getVersionDiff(oldVersion, newVersion string) (left, right string) { func getVersionDiff(oldVersion, newVersion string) (left, right string) {
if oldVersion == newVersion { if oldVersion == newVersion {
return oldVersion, newVersion return oldVersion + red(""), newVersion + green("")
} }
diffPosition := 0 diffPosition := 0
@ -286,10 +286,10 @@ func printLocalNewerThanAUR(
if !isDevelName(pkg.Name()) && alpm.VerCmp(pkg.Version(), aurPkg.Version) > 0 { if !isDevelName(pkg.Name()) && alpm.VerCmp(pkg.Version(), aurPkg.Version) > 0 {
fmt.Printf("%s %s: local (%s) is newer than AUR (%s)\n", fmt.Printf("%s %s: local (%s) is newer than AUR (%s)\n",
yellow(bold(smallArrow)), yellow(bold(smallArrow)),
cyan(pkg.Name()), cyan(pkg.Name()),
left, right, left, right,
) )
} }
} }
} }