mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
associate random colours with authors
This commit is contained in:
@ -144,3 +144,10 @@ func Reverse(values []string) []string {
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func LimitStr(value string, limit int) string {
|
||||
if len(value) > limit {
|
||||
return value[:limit]
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
Reference in New Issue
Block a user