Skip to content

Commit

Permalink
elvish: use peach
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 15, 2023
1 parent e7ce195 commit 5010e6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/cmd/_test/elvish.elv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set edit:completion:arg-completer[example] = {|@arg|
if (not-eq $completion[Usage] "") {
edit:notify (styled "usage: " $completion[DescriptionStyle])$completion[Usage]
}
put $completion[Candidates] | all (one) | each {|c|
put $completion[Candidates] | all (one) | peach {|c|
if (eq $c[Description] "") {
edit:complex-candidate $c[Value] &display=(styled $c[Display] $c[Style]) &code-suffix=$c[CodeSuffix]
} else {
Expand Down
2 changes: 1 addition & 1 deletion internal/shell/elvish/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func Snippet(cmd *cobra.Command) string {
if (not-eq $completion[Usage] "") {
edit:notify (styled "usage: " $completion[DescriptionStyle])$completion[Usage]
}
put $completion[Candidates] | all (one) | each {|c|
put $completion[Candidates] | all (one) | peach {|c|
if (eq $c[Description] "") {
edit:complex-candidate $c[Value] &display=(styled $c[Display] $c[Style]) &code-suffix=$c[CodeSuffix]
} else {
Expand Down

0 comments on commit 5010e6d

Please sign in to comment.