Skip to content

Commit ecd1384

Browse files
committed
fix(_slackpkg): do not scan after cword
1 parent 9709bdf commit ecd1384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/_slackpkg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ _comp_cmd_slackpkg()
5151
. "$config"
5252

5353
local i action
54-
for ((i = 1; i < ${#words[@]}; i++)); do
54+
for ((i = 1; i < cword; i++)); do
5555
if [[ ${words[i]} != -* ]]; then
5656
action="${words[i]}"
5757
break

0 commit comments

Comments
 (0)