mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-11-23 16:15:44 +08:00
Don't use global variables
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -225,7 +225,7 @@ _openvpn3_command() {
|
||||
_describe -t commands 'openvpn3 commands' openvpn3_cmds
|
||||
else
|
||||
local curcontext="$curcontext"
|
||||
cmd="${${openvpn3_cmds[(r)$words[1]:*]%%:*}}"
|
||||
local cmd="${${openvpn3_cmds[(r)$words[1]:*]%%:*}}"
|
||||
if (($#cmd)); then
|
||||
if (( $+functions[_openvpn3_$cmd] )); then
|
||||
_openvpn3_$cmd
|
||||
|
||||
Reference in new issue
Block a user