Skip to content

Commit

Permalink
fix(_slackpkg): do not scan after cword
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Aug 12, 2023
1 parent 9709bdf commit ecd1384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/_slackpkg
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ _comp_cmd_slackpkg()
. "$config"

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

0 comments on commit ecd1384

Please sign in to comment.