diff options
Diffstat (limited to 'pkg/gui/presentation/branches.go')
-rw-r--r-- | pkg/gui/presentation/branches.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/presentation/branches.go b/pkg/gui/presentation/branches.go index 4f9a4aba4..9d0625ea1 100644 --- a/pkg/gui/presentation/branches.go +++ b/pkg/gui/presentation/branches.go @@ -79,9 +79,9 @@ func getBranchDisplayStrings( } // Don't bother shortening branch names that are already 3 characters or less - if len(displayName) > utils.Max(availableWidth, 3) { + if len(displayName) > max(availableWidth, 3) { // Never shorten the branch name to less then 3 characters - len := utils.Max(availableWidth, 4) + len := max(availableWidth, 4) displayName = displayName[:len-1] + "…" } coloredName := nameTextStyle.Sprint(displayName) |