Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlandon committed Aug 16, 2023
1 parent 628e15a commit ea940a1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions internal/completion/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,24 +195,13 @@ func (g *group) wrapExcessAliases(grid [][]Candidate, descriptions []string) {
}

var rows [][]Candidate
var descs []string

for rowIndex := range grid {
row := grid[rowIndex]
split := false

for len(row) > maxColumns {
rows = append(rows, row[:maxColumns])
row = row[maxColumns:]

descs = append(descs, "|_")
split = true
}

if split {
descs = append(descs, "|"+descriptions[rowIndex])
} else {
descs = append(descs, descriptions[rowIndex])
}

rows = append(rows, row)
Expand Down

0 comments on commit ea940a1

Please sign in to comment.