Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlandon authored Aug 27, 2023
2 parents 28d4fe7 + 7ee8394 commit 50e6237
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/completion/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ func (g *group) longestValueDescribed(vals []Candidate) int {
longestVal = val.displayLen
}

if val.descLen > longestDesc {
longestDesc = val.descLen

}

if val.descLen > longestDesc {
longestDesc = val.descLen
}
Expand All @@ -334,6 +339,10 @@ func (g *group) longestValueDescribed(vals []Candidate) int {
longestDesc += descSeparatorLen
}

if longestDesc > 0 {
longestDesc += descSeparatorLen
}

// Always add one: there is at least one space between each column.
return longestVal + longestDesc + 1
}
Expand Down

0 comments on commit 50e6237

Please sign in to comment.