Skip to content

Commit a558922

Browse files
authored
Fix offset in completion printing (#60)
1 parent 240f4ce commit a558922

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/completion/group.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ func (g *group) longestValueDescribed(vals []Candidate) int {
327327

328328
if val.descLen > longestDesc {
329329
longestDesc = val.descLen
330-
331330
}
332331

333332
if val.descLen > longestDesc {
@@ -344,7 +343,7 @@ func (g *group) longestValueDescribed(vals []Candidate) int {
344343
}
345344

346345
// Always add one: there is at least one space between each column.
347-
return longestVal + longestDesc + 1
346+
return longestVal + longestDesc + 2
348347
}
349348

350349
func (g *group) trimDisplay(comp Candidate, pad, col int) (candidate, padded string) {

0 commit comments

Comments
 (0)