Skip to content

Commit 980a906

Browse files
authored
Merge pull request #198 from ThomasWaldmann/fix/zsh-variadic-var-swap
zsh completion fixes
2 parents 7c96147 + 5a81b8a commit 980a906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shtab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def command_case(prefix, options):
606606

607607
return f"""\
608608
{prefix}() {{
609-
local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'
609+
local context state line curcontext="$curcontext" one_or_more='(*)' remainder='(-)*'
610610
611611
if ((${{{prefix}_options[(I)${{(q)one_or_more}}*]}} + ${{{prefix}_options[(I)${{(q)remainder}}*]}} == 0)); then # noqa: E501
612612
{prefix}_options+=(': :{prefix}_commands' '*::: :->{name}')

0 commit comments

Comments
 (0)