diff --git a/pkg/gui/presentation/branches.go b/pkg/gui/presentation/branches.go index 79966ebc8..012059f8b 100644 --- a/pkg/gui/presentation/branches.go +++ b/pkg/gui/presentation/branches.go @@ -71,10 +71,11 @@ func getBranchDisplayStrings( if showCommitHash { availableWidth -= utils.COMMIT_HASH_SHORT_SIZE + 1 } + paddingNeededForDivergence := availableWidth + if checkedOutByWorkTree { availableWidth -= utils.StringWidth(worktreeIcon) + 1 } - paddingNeededForDivergence := availableWidth if len(branchStatus) > 0 { availableWidth -= utils.StringWidth(utils.Decolorise(branchStatus)) + 1