localize some variables

This commit is contained in:
Valentin Haenel
2015-02-14 17:21:20 +01:00
parent 7c63b94ce2
commit 342df8ff00

1
_conda
View File

@@ -343,6 +343,7 @@ case $state in
;;
(config)
# this allows completing multiple keys
local -a last_item get_opts
last_item=$line[$CURRENT-1]
if [[ ${line[(r)--get]} == --get ]] && [[ ${config_options[(r)$last_item]} == $last_item ]] ; then
get_opts=('*:keys:__conda_config')