Merge pull request #1239 from zsh-users/refactor_openvpn3

Refactor openvpn3
This commit is contained in:
Shohei YOSHIDA 2026-03-16 14:12:18 +09:00 committed by GitHub
commit 8ef1a35c32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ _openvpn3_command() {
_describe -t commands 'openvpn3 commands' openvpn3_cmds _describe -t commands 'openvpn3 commands' openvpn3_cmds
else else
local curcontext="$curcontext" local curcontext="$curcontext"
cmd="${${openvpn3_cmds[(r)$words[1]:*]%%:*}}" local cmd="${${openvpn3_cmds[(r)$words[1]:*]%%:*}}"
if (($#cmd)); then if (($#cmd)); then
if (( $+functions[_openvpn3_$cmd] )); then if (( $+functions[_openvpn3_$cmd] )); then
_openvpn3_$cmd _openvpn3_$cmd