Don't overwrite context variables

This commit is contained in:
Shohei YOSHIDA
2026-03-15 15:08:30 +09:00
parent da6814a485
commit 0dce3a833b
+5 -2
View File
@@ -41,8 +41,11 @@
# ------------------------------------------------------------------------------
function _cask() {
local ret=1 state
_arguments \
typeset -A opt_args
local context state line ret=1
local curcontext="$curcontext"
_arguments -C \
':subcommand:->subcommand' \
'*:: :->subcmds' && ret=0