Skip to content

Commit 4f15cc8

Browse files
authored
Make shell completion variables private. (#16144)
Otherwise they leak. For example type `cargo che<Tab>` in ZSH and you can see that the variables are now set in the shell (overwriting existing variables of this name). ### What does this PR try to resolve? Avoids leaking/overwriting variables in the user's shell. ### How to test and review this PR? Load the shell completions and run a completion.
2 parents f71caeb + fcd0c86 commit 4f15cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/_cargo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ autoload -U regexp-replace
44

55
_cargo() {
66
local curcontext="$curcontext" ret=1
7-
local -a command_scope_spec common parallel features msgfmt triple target registry
7+
local -a command_scope_spec common jobs parallel features manifest msgfmt triple target registry
88
local -a state line state_descr # These are set by _arguments
99
typeset -A opt_args
1010

0 commit comments

Comments
 (0)