Skip to content

Commit ae6d29a

Browse files
authored
should use ...$spans instead of $spans in carapace completer (#1399)
1 parent c12cec7 commit ae6d29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/external_completers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The solution to this involves manually checking the value to filter it out:
114114

115115
```nu
116116
let carapace_completer = {|spans: list<string>|
117-
carapace $spans.0 nushell $spans
117+
carapace $spans.0 nushell ...$spans
118118
| from json
119119
| if ($in | default [] | where value == $"($spans | last)ERR" | is-empty) { $in } else { null }
120120
}

0 commit comments

Comments
 (0)