Skip to content

Commit 580978e

Browse files
authored
Merge pull request #404 from rsteube/remove-explicit-trimming
descriptions are now implicitly trimmed by carapace
2 parents 054b722 + ffb6dbe commit 580978e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/actions/os/os.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ func ActionEnvironmentVariables() carapace.Action {
2222
for index, e := range os.Environ() {
2323
pair := strings.SplitN(e, "=", 2)
2424
vars[index*2] = pair[0]
25-
if len(pair[1]) > 40 {
26-
vars[(index*2)+1] = pair[1][:37] + "..."
27-
} else {
28-
vars[(index*2)+1] = pair[1]
29-
}
25+
vars[(index*2)+1] = pair[1]
3026
}
3127
return carapace.ActionValuesDescribed(vars...)
3228
})

0 commit comments

Comments
 (0)