Skip to content

Commit

Permalink
Merge pull request #904 from rsteube/elvish-peach
Browse files Browse the repository at this point in the history
elvish: use peach
  • Loading branch information
rsteube authored Aug 15, 2023
2 parents e7ce195 + 5010e6d commit 87897c8
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 87897c8

Please sign in to comment.