aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2026-03-15 22:09:37 +0900
committerShohei YOSHIDA <syohex@gmail.com>2026-03-15 22:09:37 +0900
commit45f8084e70673f2d557cf888f95abe464c6fbccd (patch)
tree5a8087390f47683ec3c3430f6fb5ef56137fa13e /src
parentMerge pull request #1232 from zsh-users/fix-format (diff)
downloadzsh-completions-refactor_openvpn3.tar
zsh-completions-refactor_openvpn3.tar.gz
zsh-completions-refactor_openvpn3.tar.bz2
zsh-completions-refactor_openvpn3.tar.lz
zsh-completions-refactor_openvpn3.tar.xz
zsh-completions-refactor_openvpn3.tar.zst
zsh-completions-refactor_openvpn3.zip
Don't use global variablesrefactor_openvpn3
Diffstat (limited to 'src')
-rw-r--r--src/_openvpn32
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_openvpn3 b/src/_openvpn3
index 4158db5..8c1ec9a 100644
--- a/src/_openvpn3
+++ b/src/_openvpn3
@@ -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