Skip to content

Commit

Permalink
imp(Completions): completions now continue completing even after firs…
Browse files Browse the repository at this point in the history
…t completion

Prior to this change, completions only allowed one completion per command, this change allows as
many as required. The one downside to this change is the completion engine isn't smart enough to
determine which options are no longer legal after certain options have been applied.
  • Loading branch information
kbknapp committed Jul 1, 2016
1 parent 89cc202 commit 18fc2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/completions.rs
Expand Up @@ -78,6 +78,8 @@ impl<'a, 'b> ComplGen<'a, 'b> {
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W \"${{opts}}\" -- ${{cur}}) )
return 0
;;
{subcmd_details}
esac
Expand Down Expand Up @@ -133,6 +135,8 @@ complete -F _{name} {name}
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W \"${{opts}}\" -- ${{cur}}) )
return 0
;;",
subcmd_dets,
subcmd=sc.replace("-", "_"),
Expand Down

0 comments on commit 18fc2e5

Please sign in to comment.