Skip to content

Commit 3634741

Browse files
committed
fix: zsh standalone dynamic completion via args|subcommand pattern
The ;| terminator continues testing patterns, but args) doesn't match when state is 'subcommand'. Use args|subcommand) so the dynamic completion handler fires for standalone commands too.
1 parent 0aebaf4 commit 3634741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ ${caseBranches}
423423
;;
424424
esac
425425
;|
426-
args)
426+
args|subcommand)
427427
# Dynamic completion for positional args (org slugs, project names)
428428
# In the args state, $line[1] and $line[2] hold the parsed command
429429
# and subcommand. Pass them to __complete for context detection.

0 commit comments

Comments
 (0)