We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebef925 + dcfdf40 commit 0fe8afeCopy full SHA for 0fe8afe
1 file changed
pkg/gui/presentation/branches.go
@@ -145,7 +145,13 @@ func getBranchDisplayStrings(
145
}
146
147
if divergence != "" {
148
- paddingNeededForDivergence -= utils.StringWidth(utils.Decolorise(coloredName)) - 1
+ if fullDescription {
149
+ // don't right-align the divergence in half or full screen mode, since other fields
150
+ // follow in that case and we don't know the width of our column
151
+ paddingNeededForDivergence = 1
152
+ } else {
153
+ paddingNeededForDivergence -= utils.StringWidth(utils.Decolorise(coloredName)) - 1
154
+ }
155
if paddingNeededForDivergence > 0 {
156
coloredName += strings.Repeat(" ", paddingNeededForDivergence)
157
coloredName += style.FgCyan.Sprint(divergence)
0 commit comments