diff options
Diffstat (limited to 'etc/bash_completion.d/vyatta-op')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 22eea12..c59df65 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -456,7 +456,8 @@ _vyatta_op_expand () _vyatta_op_last_comp=${_vyatta_op_last_comp_init} # if there are no completions then always show the non-comps elif [ "${COMP_WORDS[*]:0:$[$COMP_CWORD+1]}" == "$_vyatta_op_last_comp" ] || - [ ${#_vyatta_op_completions[@]} -eq 0 ]; then + [ ${#_vyatta_op_completions[@]} -eq 0 ] || + [ -z "$cur" ]; then _vyatta_op_help "$current_prefix" \ "${_vyatta_op_noncompletions[@]}" \ "${_vyatta_op_completions[@]}" \ |