Don't overwrite context variables

This commit is contained in:
Shohei YOSHIDA 2026-03-15 15:07:47 +09:00
parent da6814a485
commit 0dce3a833b
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 5 additions and 2 deletions

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