Skip to content

Commit

Permalink
Merge pull request #227 from rsteube/elvish-fix-script
Browse files Browse the repository at this point in the history
elvish: removed empty parameter fix
  • Loading branch information
rsteube authored Jan 14, 2021
2 parents 3438afc + b8fdf2d commit b6bfde5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions example/cmd/_test/elvish.elv
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
edit:completion:arg-completer[example] = [@arg]{
if (eq $arg[-1] "") {
arg[-1] = "''"
}
example _carapace elvish _ (all $arg) | from-json | all (one) | each [c]{ edit:complex-candidate $c[Value] &display=$c[Display] }
}

3 changes: 0 additions & 3 deletions internal/elvish/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import (

func Snippet(cmd *cobra.Command, actions map[string]string) string {
return fmt.Sprintf(`edit:completion:arg-completer[%v] = [@arg]{
if (eq $arg[-1] "") {
arg[-1] = "''"
}
%v _carapace elvish _ (all $arg) | from-json | all (one) | each [c]{ edit:complex-candidate $c[Value] &display=$c[Display] }
}
`, cmd.Name(), uid.Executable())
Expand Down

0 comments on commit b6bfde5

Please sign in to comment.