This commit is contained in:
Segev Finer 2024-11-20 10:10:05 +00:00 committed by GitHub
commit d048ec81cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ __docker_container_subcommand() {
"($help -)*:containers:->values" && ret=0
case $state in
(values)
if [[ ${words[(r)-f]} == -f || ${words[(r)--force]} == --force ]]; then
if [[ -n ${opt_args[(i)-f]} || -n ${opt_args[(i)--force]} ]]; then
__docker_complete_containers && ret=0
else
__docker_complete_stopped_containers && ret=0