Repository: rsteube/carapace (go)

Issue:
elvish: elvish: empty argument fix not needed anymore
seems this is not needed anymore in the completion script and rather causes an error

```elvish
if (eq $arg[-1] "") {
    arg[-1] = "''"
}
```


Pull request description:
elvish: removed empty parameter fix
fix #226


Patch:
diff --git a/internal/elvish/snippet.go b/internal/elvish/snippet.go
index 3610ec3..0b73239 100644
--- a/internal/elvish/snippet.go
+++ b/internal/elvish/snippet.go
@@ -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())


Test patch:
diff --git a/example/cmd/_test/elvish.elv b/example/cmd/_test/elvish.elv
index 5580805..3987d19 100644
--- a/example/cmd/_test/elvish.elv
+++ b/example/cmd/_test/elvish.elv
@@ -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] }
 }